(
&self,
obj: &PyObject,
method: &'static PyStrInterned,
args: impl IntoFuncArgs,
)
| 175 | /// NOT PUBLIC API |
| 176 | #[doc(hidden)] |
| 177 | pub fn call_special_method( |
| 178 | &self, |
| 179 | obj: &PyObject, |
| 180 | method: &'static PyStrInterned, |
| 181 | args: impl IntoFuncArgs, |
| 182 | ) -> PyResult { |
| 183 | self.get_special_method(obj, method)? |
| 184 | .ok_or_else(|| self.new_attribute_error(method.as_str().to_owned()))? |
| 185 | .invoke(args, self) |
| 186 | } |
| 187 | |
| 188 | /// Same as __builtins__.print in Python. |
| 189 | /// A convenience function to provide a simple way to print objects for debug purpose. |
no test coverage detected