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

Method class

crates/vm/src/builtins/int.rs:63–65  ·  view source on GitHub ↗
(ctx: &Context)

Source from the content-addressed store, hash-verified

61
62 #[inline]
63 fn class(ctx: &Context) -> &'static Py<PyType> {
64 ctx.types.int_type
65 }
66
67 fn into_pyobject(self, vm: &VirtualMachine) -> PyObjectRef {
68 vm.ctx.new_int(self.value).into()

Callers 2

slot_newMethod · 0.45
__format__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected