MCPcopy Index your code
hub / github.com/python/cpython / SpecialDescr

Class SpecialDescr

Lib/test/test_descr.py:2258–2263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2256 test.fail("__getattribute__ called with {0}".format(attr))
2257 return object.__getattribute__(self, attr)
2258 class SpecialDescr(object):
2259 def __init__(self, impl):
2260 self.impl = impl
2261 def __get__(self, obj, owner):
2262 record.append(1)
2263 return self.impl.__get__(obj, owner)
2264 class MyException(Exception):
2265 pass
2266 class ErrDescr(object):

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…