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

Method bind

crates/vm/src/builtins/descriptor.rs:113–115  ·  view source on GitHub ↗
(&self, obj: PyObjectRef, ctx: &Context)

Source from the content-addressed store, hash-verified

111
112impl PyMethodDescriptor {
113 pub fn bind(&self, obj: PyObjectRef, ctx: &Context) -> PyRef<PyNativeMethod> {
114 self.method.build_bound_method(ctx, obj, self.common.typ)
115 }
116}
117
118#[pyclass(

Callers 15

slot_newMethod · 0.45
slot_newMethod · 0.45
slot_newMethod · 0.45
slot_newMethod · 0.45
slot_newMethod · 0.45
slot_newMethod · 0.45
py_newMethod · 0.45
slot_newMethod · 0.45
slot_newMethod · 0.45
__getstate__Method · 0.45
__set_name__Method · 0.45
slot_newMethod · 0.45

Calls 1

build_bound_methodMethod · 0.80

Tested by

no test coverage detected