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

Class descriptor

Lib/test/test_inspect/test_inspect.py:2431–2433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2429
2430 def test_descriptor_raises_AttributeError(self):
2431 class descriptor(object):
2432 def __get__(*_):
2433 raise AttributeError("I'm pretending not to exist")
2434 desc = descriptor()
2435 class Thing(object):
2436 x = desc

Callers 7

FooClass · 0.85
metaClass · 0.85
generic_setattrMethod · 0.85
setattroMethod · 0.85
setattroMethod · 0.85
setattroMethod · 0.85

Calls

no outgoing calls

Tested by 1