Method
call_method
(
&self,
py: Python,
name: &str,
args: A,
kwargs: Option<&PyDict>,
)
Source from the content-addressed store, hash-verified
| 238 | /// ``` |
| 239 | #[inline] |
| 240 | fn call_method<A>( |
| 241 | &self, |
| 242 | py: Python, |
| 243 | name: &str, |
| 244 | args: A, |
| 245 | kwargs: Option<&PyDict>, |
| 246 | ) -> PyResult<PyObject> |
| 247 | where |
| 248 | A: ToPyObject<ObjectType = PyTuple>, |
| 249 | { |
| 250 | self.getattr(py, name)?.call(py, args, kwargs) |
| 251 | } |
| 252 | |
| 253 | /// Retrieves the hash code of the object. |
| 254 | /// This is equivalent to the Python expression: 'hash(self)' |