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

Function id

crates/vm/src/stdlib/builtins.rs:681–683  ·  view source on GitHub ↗
(obj: PyObjectRef)

Source from the content-addressed store, hash-verified

679
680 #[pyfunction]
681 fn id(obj: PyObjectRef) -> usize {
682 obj.get_id()
683 }
684
685 #[pyfunction]
686 fn input(prompt: OptionalArg<PyStrRef>, vm: &VirtualMachine) -> PyResult {

Callers 15

unwrapFunction · 0.85
wrapperFunction · 0.85
repr_intMethod · 0.85
repr_instanceMethod · 0.85
_flattenMethod · 0.85
_getrefnumMethod · 0.85
__repr__Method · 0.85
__repr__Method · 0.85
__repr__Method · 0.85
__repr__Method · 0.85
__repr__Method · 0.85
__init__Method · 0.85

Calls 1

get_idMethod · 0.45

Tested by 15

__lt__Method · 0.68
_findMethod · 0.68
test_legacy_finalizerMethod · 0.68
test_saveallMethod · 0.68
__hash__Method · 0.68
test_copyMethod · 0.68