MCPcopy Index your code
hub / github.com/dgrunwald/rust-cpython / call_method

Method call_method

src/objectprotocol.rs:240–251  ·  view source on GitHub ↗
(
        &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)'

Callers 2

test_array_bufferFunction · 0.80
nextMethod · 0.80

Implementers 1

objectprotocol.rssrc/objectprotocol.rs

Calls 2

getattrMethod · 0.80
callMethod · 0.45

Tested by 1

test_array_bufferFunction · 0.64