MCPcopy Create free account
hub / github.com/python/cpython / __wrapped__

Method __wrapped__

Lib/test/test_inspect/test_inspect.py:6422–6427  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6420
6421 @property
6422 def __wrapped__(self):
6423 if self.n <= 0:
6424 raise Exception("Unwrapped too many times")
6425 if self._next is None:
6426 self._next = NTimesUnwrappable(self.n - 1)
6427 return self._next
6428
6429class TestUnwrap(unittest.TestCase):
6430

Callers 3

test_lruMethod · 0.45
setrecursionlimitFunction · 0.45
getrecursionlimitFunction · 0.45

Calls 1

NTimesUnwrappableClass · 0.85

Tested by

no test coverage detected