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

Method get_special_method

crates/vm/src/vm/vm_object.rs:167–173  ·  view source on GitHub ↗
(
        &self,
        obj: &PyObject,
        method: &'static PyStrInterned,
    )

Source from the content-addressed store, hash-verified

165
166 #[inline]
167 pub(crate) fn get_special_method(
168 &self,
169 obj: &PyObject,
170 method: &'static PyStrInterned,
171 ) -> PyResult<Option<PyMethod>> {
172 PyMethod::get_special::<false>(obj, method, self)
173 }
174
175 /// NOT PUBLIC API
176 #[doc(hidden)]

Callers 14

spec_format_bytesFunction · 0.80
execute_instructionMethod · 0.80
try_intMethod · 0.80
strMethod · 0.80
roundFunction · 0.80
get_new_argumentsFunction · 0.80
_absMethod · 0.80
_posMethod · 0.80
_negMethod · 0.80
_invertMethod · 0.80
formatMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected