Home
last modified time | relevance | path

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

12

/external/tensorflow/tensorflow/python/util/
Dtf_decorator.py105 decorator_func.__wrapped__ = target
173 innermost_decorator.__func__.__wrapped__ = new_target
175 innermost_decorator.im_func.__wrapped__ = new_target
177 innermost_decorator.__wrapped__ = new_target
179 innermost_decorator.__wrapped__ = new_target
Dtf_decorator_test.py58 return wrapper.__wrapped__(x)**2
66 return wrapper.__wrapped__(x) + 1
/external/python/cpython3/Lib/
Dcontextlib.py439 _exit_wrapper.__wrapped__ = callback
587 _exit_wrapper.__wrapped__ = callback
Dfunctools.py63 wrapper.__wrapped__ = wrapped
/external/python/cpython3/Doc/library/
Dfunctools.rst78 :attr:`__wrapped__` attribute. This is useful for introspection, for
411 automatically adds a ``__wrapped__`` attribute to the wrapper that refers to
427 Automatic addition of the ``__wrapped__`` attribute.
436 The ``__wrapped__`` attribute now always refers to the wrapped
437 function, even if that function defined a ``__wrapped__`` attribute.
Dinspect.rst568 ``callable`` specifically (``callable.__wrapped__`` will not be used to
653 without unwrapping its ``__wrapped__`` chain.
921 ``__wrapped__`` attributes and includes the already bound first
1041 Get the object wrapped by *func*. It follows the chain of :attr:`__wrapped__`
/external/python/funcsigs/
DREADME.rst45 the ``__wrapped__`` property of a class after it has been constructed.
/external/python/mock/mock/tests/
Dtestpatch.py1814 self.assertIs(decorated.__wrapped__, function)
1820 self.assertIs(decorated.__wrapped__, function)
1825 self.assertIs(decorated.__wrapped__, function)
1830 self.assertIs(decorated.__wrapped__, function)
1835 self.assertIs(decorated.__wrapped__, function)
/external/python/cpython3/Lib/test/
Dtest_inspect.py2683 wrapped_foo_call.__wrapped__ = Foo.__call__
2838 Wrapped.__wrapped__ = lambda a: None
2843 Wrapped.__wrapped__ = Wrapped
3673 def __wrapped__(self): member in NTimesUnwrappable
3696 self.assertIsNot(wrapper.__wrapped__, func)
3715 func1.__wrapped__ = func1
3720 func2.__wrapped__ = func1
3721 func1.__wrapped__ = func2
3729 func.__wrapped__ = None
3732 __wrapped__ = func variable in TestUnwrap.test_unhashable.C
Dtest_functools.py592 self.assertIs(wrapper.__wrapped__, wrapped)
600 f.__wrapped__ = "This is a bald faced lie"
609 self.assertIs(wrapper.__wrapped__, f)
695 f.__wrapped__ = "This is still a bald faced lie"
1173 self.assertIs(f.__wrapped__, orig)
1174 f.__wrapped__(x, y)
Dtest_contextlib_async.py326 self.assertIs(wrapper[1].__wrapped__, _exit)
Dtest_contextlib.py595 self.assertIs(wrapper[1].__wrapped__, _exit)
/external/python/six/
Dtest_six.py786 k = k.__wrapped__
788 k = k.__wrapped__
DCHANGES118 the __wrapped__ attribute.
Dsix.py812 f.__wrapped__ = wrapped
/external/tensorflow/tensorflow/python/eager/
Ddef_function.py316 return weak_wrapped_fn().__wrapped__(*args, **kwds)
Dfunction.py2077 wrapped_fn = strong_bound_method_wrapper.__wrapped__
/external/python/funcsigs/tests/
Dtest_inspect.py534 Wrapped.__wrapped__ = lambda a: None
/external/python/funcsigs/docs/
Dindex.rst32 the ``__wrapped__`` property of a class after it has been constructed.
/external/scapy/scapy/modules/
Dsix.py816 f.__wrapped__ = wrapped
/external/python/funcsigs/funcsigs/
D__init__.py87 wrapped = obj.__wrapped__
/external/python/setuptools/pkg_resources/_vendor/
Dsix.py793 f.__wrapped__ = wrapped
/external/python/setuptools/setuptools/_vendor/
Dsix.py793 f.__wrapped__ = wrapped
/external/pdfium/third_party/pymock/
Dmock.py55 f.__wrapped__ = original
65 f.__wrapped__ = func
/external/python/cpython3/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.

12