MCPcopy Index your code
hub / github.com/RustPython/RustPython / print

Method print

crates/vm/src/vm/vm_object.rs:191–195  ·  view source on GitHub ↗

Same as __builtins__.print in Python. A convenience function to provide a simple way to print objects for debug purpose. NOTE: Keep the interface simple.

(&self, args: impl IntoFuncArgs)

Source from the content-addressed store, hash-verified

189 /// A convenience function to provide a simple way to print objects for debug purpose.
190 // NOTE: Keep the interface simple.
191 pub fn print(&self, args: impl IntoFuncArgs) -> PyResult<()> {
192 let ret = self.builtins.get_attr("print", self)?.call(args, self)?;
193 debug_assert!(self.is_none(&ret));
194 Ok(())
195 }
196
197 #[deprecated(note = "in favor of `obj.call(args, vm)`")]
198 pub fn invoke(&self, obj: &impl AsObject, args: impl IntoFuncArgs) -> PyResult {

Callers 5

readPromptsFunction · 0.45
onReadyFunction · 0.45
mainFunction · 0.45
runFunction · 0.45
bench_cpython_codeFunction · 0.45

Calls 2

callMethod · 0.45
get_attrMethod · 0.45

Tested by

no test coverage detected