Home
last modified time | relevance | path

Searched refs:__wrapped__ (Results 1 – 23 of 23) sorted by relevance

/third_party/python/Lib/test/
Dtest_decorators.py87 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)
Dtest_inspect.py2997 wrapped_foo_call.__wrapped__ = Foo.__call__
3192 Wrapped.__wrapped__ = lambda a: None
3197 Wrapped.__wrapped__ = Wrapped
4228 def __wrapped__(self): member in NTimesUnwrappable
4251 self.assertIsNot(wrapper.__wrapped__, func)
4270 func1.__wrapped__ = func1
4275 func2.__wrapped__ = func1
4276 func1.__wrapped__ = func2
4284 func.__wrapped__ = None
4287 __wrapped__ = func variable in TestUnwrap.test_unhashable.C
Dtest_functools.py617 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"
1259 self.assertIs(f.__wrapped__, orig)
1260 f.__wrapped__(x, y)
Dtest_contextlib_async.py449 self.assertIs(wrapper[1].__wrapped__, _exit)
Dtest_contextlib.py601 self.assertIs(wrapper[1].__wrapped__, _exit)
/third_party/python/Tools/peg_generator/pegen/
Dparser.py39 logger_wrapper.__wrapped__ = method # type: ignore
76 memoize_wrapper.__wrapped__ = method # type: ignore
154 memoize_left_rec_wrapper.__wrapped__ = method # type: ignore
/third_party/python/Lib/idlelib/
Drun.py357 return setrecursionlimit.__wrapped__(limit + RECURSIONLIMIT_DELTA)
365 return getrecursionlimit.__wrapped__() - RECURSIONLIMIT_DELTA
388 sys.setrecursionlimit = sys.setrecursionlimit.__wrapped__
389 sys.getrecursionlimit = sys.getrecursionlimit.__wrapped__
/third_party/python/Lib/
Dcontextlib.py505 _exit_wrapper.__wrapped__ = callback
650 _exit_wrapper.__wrapped__ = callback
Dfunctools.py61 wrapper.__wrapped__ = wrapped
Dpprint.py188 "__create_fn__" in object.__repr__.__wrapped__.__qualname__):
Dinspect.py161 unwrap = unwrap.__wrapped__
640 func = func.__wrapped__
Dtyping.py1822 nsobj = nsobj.__wrapped__
/third_party/python/Doc/library/
Dfunctools.rst188 :attr:`__wrapped__` attribute. This is useful for introspection, for
605 automatically adds a ``__wrapped__`` attribute to the wrapper that refers to
621 Automatic addition of the ``__wrapped__`` attribute.
630 The ``__wrapped__`` attribute now always refers to the wrapped
631 function, even if that function defined a ``__wrapped__`` attribute.
Dinspect.rst608 ``callable`` specifically (``callable.__wrapped__`` will not be used to
696 without unwrapping its ``__wrapped__`` chain. ``globalns`` and
986 ``__wrapped__`` attributes and includes the already bound first
1106 Get the object wrapped by *func*. It follows the chain of :attr:`__wrapped__`
Dfunctions.rst272 have a new ``__wrapped__`` attribute.
1664 have a new ``__wrapped__`` attribute, and are now callable as regular
/third_party/python/Doc/howto/
Dannotations.rst147 unwrap it by accessing either ``o.__wrapped__`` or ``o.func`` as
/third_party/python/Doc/whatsnew/
D3.4.rst1033 ``__wrapped__`` attribute on a wrapper function). (Contributed by
1047 :func:`~inspect.signature`, these functions still ignore ``__wrapped__``
1282 variety of callable objects. This change also means that ``__wrapped__``
2320 set the ``__wrapped__`` attribute to the function being wrapped, even if
2321 that function also had its ``__wrapped__`` attribute set. This means
2322 ``__wrapped__`` attributes now correctly link a stack of decorated
2323 functions rather than every ``__wrapped__`` attribute in the chain
2327 no ``__wrapped__`` attribute.
D3.2.rst788 * The :func:`functools.wraps` decorator now adds a :attr:`__wrapped__` attribute
797 >>> get_phone_number = get_phone_number.__wrapped__ # uncached function
D3.5.rst1308 following of ``__wrapped__`` links.
D3.10.rst848 ``__annotations__``) and have a new ``__wrapped__`` attribute.
/third_party/python/Misc/NEWS.d/
D3.10.0b1.rst408 ``__annotations__``) and have a new ``__wrapped__`` attribute. Patch by
/third_party/typescript/tests/baselines/reference/user/
Dlodash.log395 node_modules/lodash/plant.js(42,21): error TS2339: Property '__wrapped__' does not exist on type '{…
/third_party/python/Misc/
DHISTORY2296 - Issue #20684: Fix inspect.getfullargspec() to not to follow __wrapped__
4746 - Issue #13266: Added inspect.unwrap to easily unravel __wrapped__ chains
4785 __wrapped__ attribute correctly even if the underlying function has a
4786 __wrapped__ attribute set.
12501 - Issue #9567: functools.update_wrapper now adds a __wrapped__ attribute