Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/asyncio/
Dformat_helpers.py17 if isinstance(func, functools.partialmethod):
/external/python/cpython3/Doc/library/
Dfunctools.rst309 .. class:: partialmethod(func, /, *args, **keywords)
311 Return a new :class:`partialmethod` descriptor which behaves
320 another instance of :class:`partialmethod`), calls to ``__get__`` are
328 the :class:`partialmethod` constructor.
340 ... set_alive = partialmethod(set_state, True)
341 ... set_dead = partialmethod(set_state, False)
/external/python/cpython3/Lib/test/
Dtest_functools.py468 nothing = functools.partialmethod(capture)
469 positional = functools.partialmethod(capture, 1)
470 keywords = functools.partialmethod(capture, a=2)
471 both = functools.partialmethod(capture, 3, b=4)
472 spec_keywords = functools.partialmethod(capture, self=1, func=2)
474 nested = functools.partialmethod(positional, 5)
476 over_partial = functools.partialmethod(functools.partial(capture, c=6), 7)
478 static = functools.partialmethod(staticmethod(capture), 8)
479 cls = functools.partialmethod(classmethod(capture), d=9)
560 method = functools.partialmethod(None, 1)
[all …]
Dtest_genericalias.py14 from functools import partial, partialmethod, cached_property
57 partial, partialmethod, cached_property,
Dtest_inspect.py929 pham = functools.partialmethod(ham)
2277 f1 = functools.partialmethod((test_classmethod), 1)
2278 f2 = functools.partialmethod((test_args_only), 1)
2279 f3 = functools.partialmethod((test_staticmethod), 1)
2280 f4 = functools.partialmethod((test_args_kwargs_only),1)
2772 from functools import partialmethod
2777 ham = partialmethod(test)
2785 ham = partialmethod(test, c=1)
2802 g = partialmethod(test, 1)
/external/python/cpython3/Lib/
Dfunctools.py346 class partialmethod(object): class
361 if isinstance(func, partialmethod):
Dinspect.py2296 partialmethod = obj._partialmethod
2300 if isinstance(partialmethod, functools.partialmethod):
2309 partialmethod.func,
2314 sig = _signature_get_partial(wrapped_sig, partialmethod, (None,))
/external/python/cpython3/Misc/NEWS.d/
D3.6.2rc1.rst193 wrapped with partialmethod. Patch by Dong-hee Na.
D3.5.4rc1.rst343 wrapped with partialmethod. Patch by Dong-hee Na.
D3.7.0a1.rst2615 wrapped with partialmethod. Patch by Dong-hee Na.
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_events.py2188 cb = functools.partialmethod(method)
/external/python/cpython3/Doc/whatsnew/
D3.8.rst1723 - *func* in :func:`functools.partialmethod`, :func:`weakref.finalize`,
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)