Searched refs:partialmethod (Results 1 – 15 of 15) sorted by relevance
/external/python/cpython3/Lib/asyncio/ |
D | format_helpers.py | 17 if isinstance(func, functools.partialmethod):
|
/external/python/cpython3/Doc/library/ |
D | functools.rst | 335 .. class:: partialmethod(func, /, *args, **keywords) 337 Return a new :class:`partialmethod` descriptor which behaves 346 another instance of :class:`partialmethod`), calls to ``__get__`` are 354 the :class:`partialmethod` constructor. 366 ... set_alive = partialmethod(set_state, True) 367 ... set_dead = partialmethod(set_state, False)
|
D | stdtypes.rst | 4960 * :class:`functools.partialmethod`
|
/external/python/cpython3/Lib/test/ |
D | test_functools.py | 472 nothing = functools.partialmethod(capture) 473 positional = functools.partialmethod(capture, 1) 474 keywords = functools.partialmethod(capture, a=2) 475 both = functools.partialmethod(capture, 3, b=4) 476 spec_keywords = functools.partialmethod(capture, self=1, func=2) 478 nested = functools.partialmethod(positional, 5) 480 over_partial = functools.partialmethod(functools.partial(capture, c=6), 7) 482 static = functools.partialmethod(staticmethod(capture), 8) 483 cls = functools.partialmethod(classmethod(capture), d=9) 564 method = functools.partialmethod(None, 1) [all …]
|
D | test_genericalias.py | 15 from functools import partial, partialmethod, cached_property 58 partial, partialmethod, cached_property,
|
D | test_inspect.py | 954 pham = functools.partialmethod(ham) 2402 f1 = functools.partialmethod((test_classmethod), 1) 2403 f2 = functools.partialmethod((test_args_only), 1) 2404 f3 = functools.partialmethod((test_staticmethod), 1) 2405 f4 = functools.partialmethod((test_args_kwargs_only),1) 2897 from functools import partialmethod 2902 ham = partialmethod(test) 2910 ham = partialmethod(test, c=1) 2927 g = partialmethod(test, 1)
|
/external/python/cpython3/Lib/ |
D | functools.py | 347 class partialmethod(object): class 362 if isinstance(func, partialmethod):
|
D | inspect.py | 2426 partialmethod = obj._partialmethod 2430 if isinstance(partialmethod, functools.partialmethod): 2438 wrapped_sig = _get_signature_of(partialmethod.func) 2440 sig = _signature_get_partial(wrapped_sig, partialmethod, (None,))
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.6.2rc1.rst | 193 wrapped with partialmethod. Patch by Dong-hee Na.
|
D | 3.5.4rc1.rst | 343 wrapped with partialmethod. Patch by Dong-hee Na.
|
D | 3.7.0a1.rst | 2615 wrapped with partialmethod. Patch by Dong-hee Na.
|
/external/python/cpython3/Lib/test/test_asyncio/ |
D | test_events.py | 2211 cb = functools.partialmethod(method)
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.8.rst | 1724 - *func* in :func:`functools.partialmethod`, :func:`weakref.finalize`,
|
D | 3.4.rst | 853 The new :func:`~functools.partialmethod` descriptor brings partial argument
|
/external/python/cpython3/Misc/ |
D | HISTORY | 4716 - Issue #4331: Added functools.partialmethod (Initial patch by Alon Horev)
|