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

Function proxy

crates/vm/src/stdlib/_weakref.rs:21–23  ·  view source on GitHub ↗
(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

19 }
20 #[pyattr]
21 fn proxy(vm: &VirtualMachine) -> PyTypeRef {
22 vm.ctx.types.weakproxy_type.to_owned()
23 }
24 #[pyattr(name = "ReferenceType")]
25 fn reference_type(vm: &VirtualMachine) -> PyTypeRef {
26 vm.ctx.types.weakref_type.to_owned()

Callers 7

test_weakrefMethod · 0.90
test_weakrefMethod · 0.90
testWeakRefsMethod · 0.90
test_weakrefMethod · 0.90
testWeakRefsMethod · 0.90
stdlib_weakref.pyFile · 0.90
__setitem__Method · 0.85

Calls 1

to_ownedMethod · 0.45

Tested by 5

test_weakrefMethod · 0.72
test_weakrefMethod · 0.72
testWeakRefsMethod · 0.72
test_weakrefMethod · 0.72
testWeakRefsMethod · 0.72