Searched refs:__wrapped__ (Results 1 - 12 of 12) sorted by relevance
/third_party/python/Lib/test/ |
H A D | test_decorators.py | 87 self.assertIs(wrapper.__wrapped__, func) 298 self.__wrapped__ = wrapped 301 return self.__wrapped__(*args, **kwargs) 305 self.__wrapped__ = wrapped 308 bound_function = self.__wrapped__.__get__(instance, owner)
|
H A D | test_inspect.py | 977 # Issue 20684: low level introspection API must ignore __wrapped__ 3084 wrapped_foo_call.__wrapped__ = Foo.__call__ 3279 Wrapped.__wrapped__ = lambda a: None 3284 Wrapped.__wrapped__ = Wrapped 4372 def __wrapped__(self): member in NTimesUnwrappable 4395 self.assertIsNot(wrapper.__wrapped__, func) 4414 func1.__wrapped__ = func1 4419 func2.__wrapped__ = func1 4420 func1.__wrapped__ = func2 4428 func.__wrapped__ 4431 __wrapped__ = func global() variable in TestUnwrap.test_unhashable.C [all...] |
H A D | test_functools.py | 612 if name == "__dict__" and key == "__wrapped__": 613 # __wrapped__ is overwritten by the update code 616 # Check __wrapped__ 617 self.assertIs(wrapper.__wrapped__, wrapped) 625 f.__wrapped__ = "This is a bald faced lie" 634 self.assertIs(wrapper.__wrapped__, f) 720 f.__wrapped__ = "This is still a bald faced lie" 1326 self.assertIs(f.__wrapped__, orig) 1327 f.__wrapped__(x, y)
|
H A D | test_contextlib_async.py | 585 self.assertIs(wrapper[1].__wrapped__, _exit)
|
H A D | test_contextlib.py | 653 self.assertIs(wrapper[1].__wrapped__, _exit)
|
/third_party/python/Lib/idlelib/ |
H A D | run.py | 357 return setrecursionlimit.__wrapped__(limit + RECURSIONLIMIT_DELTA) 365 return getrecursionlimit.__wrapped__() - RECURSIONLIMIT_DELTA 385 getattr(sys.setrecursionlimit, '__wrapped__', None) and 386 getattr(sys.getrecursionlimit, '__wrapped__', None) 388 sys.setrecursionlimit = sys.setrecursionlimit.__wrapped__ 389 sys.getrecursionlimit = sys.getrecursionlimit.__wrapped__
|
/third_party/python/Tools/peg_generator/pegen/ |
H A D | parser.py | 36 logger_wrapper.__wrapped__ = method # type: ignore 73 memoize_wrapper.__wrapped__ = method # type: ignore 155 memoize_left_rec_wrapper.__wrapped__ = method # type: ignore
|
/third_party/python/Lib/ |
H A D | contextlib.py | 517 # setting __wrapped__ may still help with introspection. 518 _exit_wrapper.__wrapped__ = callback 668 # setting __wrapped__ may still help with introspection. 669 _exit_wrapper.__wrapped__ = callback
|
H A D | functools.py | 59 # Issue #17482: set __wrapped__ last so we don't inadvertently copy it 61 wrapper.__wrapped__ = wrapped 493 Access the underlying function with f.__wrapped__. 500 # cache_info, cache_clear, and f.__wrapped__
|
H A D | pprint.py | 188 hasattr(object.__repr__, "__wrapped__") and 189 "__create_fn__" in object.__repr__.__wrapped__.__qualname__):
|
H A D | inspect.py | 261 if hasattr(unwrap, '__wrapped__'): 262 unwrap = unwrap.__wrapped__ 738 Follows the chain of :attr:`__wrapped__` attributes returning the last 753 return hasattr(f, '__wrapped__') 756 return hasattr(f, '__wrapped__') and not stop(f) 763 func = func.__wrapped__ 1350 - wrapper chains defined by __wrapped__ *not* unwrapped automatically 1366 # getfullargspec() historically ignored __wrapped__ attributes,
|
H A D | typing.py | 2346 while hasattr(nsobj, '__wrapped__'): 2347 nsobj = nsobj.__wrapped__
|
Completed in 27 milliseconds