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)
| 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 { |
no test coverage detected