Home
last modified time | relevance | path

Searched refs:partialmethod (Results 1 – 9 of 9) sorted by relevance

/external/python/cpython3/Doc/library/
Dfunctools.rst199 .. class:: partialmethod(func, *args, **keywords)
201 Return a new :class:`partialmethod` descriptor which behaves
210 another instance of :class:`partialmethod`), calls to ``__get__`` are
218 the :class:`partialmethod` constructor.
230 ... set_alive = partialmethod(set_state, True)
231 ... set_dead = partialmethod(set_state, False)
/external/python/cpython3/Lib/test/
Dtest_functools.py437 nothing = functools.partialmethod(capture)
438 positional = functools.partialmethod(capture, 1)
439 keywords = functools.partialmethod(capture, a=2)
440 both = functools.partialmethod(capture, 3, b=4)
442 nested = functools.partialmethod(positional, 5)
444 over_partial = functools.partialmethod(functools.partial(capture, c=6), 7)
446 static = functools.partialmethod(staticmethod(capture), 8)
447 cls = functools.partialmethod(classmethod(capture), d=9)
526 method = functools.partialmethod(None, 1)
539 add5 = functools.partialmethod(add, 5)
Dtest_inspect.py725 pham = functools.partialmethod(ham)
2439 from functools import partialmethod
2444 ham = partialmethod(test)
2452 ham = partialmethod(test, c=1)
/external/python/cpython3/Lib/
Dfunctools.py325 class partialmethod(object): class
340 if isinstance(func, partialmethod):
Dinspect.py2198 partialmethod = obj._partialmethod
2202 if isinstance(partialmethod, functools.partialmethod):
2211 partialmethod.func,
2216 sig = _signature_get_partial(wrapped_sig, partialmethod, (None,))
/external/python/cpython3/Lib/asyncio/
Devents.py35 if compat.PY34 and isinstance(func, functools.partialmethod):
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_events.py2341 cb = functools.partialmethod(method)
/external/python/cpython3/Doc/whatsnew/
D3.4.rst853 The new :func:`~functools.partialmethod` descriptor brings partial argument
/external/python/cpython3/Misc/
DHISTORY4716 - Issue #4331: Added functools.partialmethod (Initial patch by Alon Horev)