Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ __class__
Method
__class__
crates/vm/src/builtins/object.rs:441–443 ·
view source on GitHub ↗
(obj: PyObjectRef)
Source
from the content-addressed store, hash-verified
439
440
#[pygetset]
441
fn __class__(obj: PyObjectRef) -> PyTypeRef {
442
obj.class().to_owned()
443
}
444
445
#[pygetset(setter)]
446
fn set___class__(
Callers
nothing calls this directly
Calls
2
to_owned
Method · 0.45
class
Method · 0.45
Tested by
no test coverage detected