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

Function _slotnames

crates/vm/Lib/core_modules/copyreg.py:112–161  ·  view source on GitHub ↗

Return a list of slot names for a given class. This needs to find slots defined by the class and its bases, so we can't simply return the __slots__ attribute. We must walk down the Method Resolution Order and concatenate the __slots__ of each class found there. (This assumes class

(cls)

Source from the content-addressed store, hash-verified

Callers

nothing calls this directly

Calls 7

hasattrFunction · 0.85
isinstanceFunction · 0.85
getMethod · 0.45
startswithMethod · 0.45
endswithMethod · 0.45
lstripMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected