Home
last modified time | relevance | path

Searched refs:functools (Results 1 - 25 of 192) sorted by relevance

12345678

/third_party/python/Lib/asyncio/
H A Dformat_helpers.py1 import functools namespace
15 if isinstance(func, functools.partial):
17 if isinstance(func, functools.partialmethod):
45 if isinstance(func, functools.partial):
H A Dthreads.py3 import functools namespace
24 func_call = functools.partial(ctx.run, func, *args, **kwargs)
/third_party/python/Lib/importlib/metadata/
H A D_functools.py2 import functools namespace
5 # from jaraco.functools 3.3
45 Note that if method had been decorated with ``functools.lru_cache()``,
60 >>> cache = functools.lru_cache(maxsize=2)
73 cache_wrapper = cache_wrapper or functools.lru_cache()
88 # From jaraco.functools 3.3
99 @functools.wraps(func)
H A D__init__.py12 import functools namespace
137 _warn = functools.partial(
204 return functools.reduce(getattr, attrs, module)
315 _warn = functools.partial(
435 _warn = functools.partial(
788 @functools.lru_cache() # type: ignore
1011 _unique = functools.partial(
/third_party/python/Lib/test/
H A Dtest_functools.py26 import functools namespace
28 py_functools = import_helper.import_fresh_module('functools',
30 c_functools = import_helper.import_fresh_module('functools')
206 name = 'functools.partial'
228 name = 'functools.partial'
445 self._cm = replaced_module("functools", py_functools)
472 nothing = functools.partialmethod(capture)
473 positional = functools.partialmethod(capture, 1)
474 keywords = functools.partialmethod(capture, a=2)
475 both = functools
[all...]
/third_party/python/Lib/test/test_zoneinfo/
H A D_support.py2 import functools namespace
16 cached = functools.lru_cache(None)(f)
18 @functools.wraps(f)
/third_party/python/Lib/idlelib/idle_test/
H A Dtkinter_testing_utils.py2 import functools namespace
31 @functools.wraps(test_method)
/third_party/skia/third_party/externals/brotli/python/tests/
H A Dcompressor_test.py6 import functools namespace
47 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
58 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
H A Ddecompressor_test.py6 import functools namespace
37 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
/third_party/python/Lib/importlib/
H A Dutil.py16 import functools namespace
150 @functools.wraps(fxn)
170 @functools.wraps(fxn)
203 @functools.wraps(fxn)
/third_party/python/Lib/test/support/
H A Dhashlib_helper.py1 import functools namespace
38 @functools.wraps(func_or_class)
H A Dtestresult.py5 import functools namespace
145 return functools.partial(unittest.TextTestRunner,
149 return functools.partial(QuietRegressionTestRunner, buffer=buffer)
/third_party/jinja2/
H A Dasync_utils.py3 from functools import WRAPPER_ASSIGNMENTS
4 from functools import wraps
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/packaging/
H A D_musllinux.py7 import functools namespace
31 @functools.lru_cache()
H A D_manylinux.py3 import functools namespace
162 @functools.lru_cache()
/third_party/python/Lib/importlib/resources/
H A D_common.py4 import functools namespace
92 @functools.singledispatch
H A D_legacy.py1 import functools namespace
16 @functools.wraps(func)
/third_party/python/Lib/test/test_zoneinfo/data/
H A Dupdate_test_data.py15 import functools namespace
41 @functools.lru_cache(maxsize=None)
/third_party/python/Lib/multiprocessing/
H A Dreduction.py12 import functools namespace
226 return functools.partial(func, *args, **keywords)
227 register(functools.partial, _reduce_partial)
280 register(functools.partial, _reduce_partial)
/third_party/python/Lib/
H A Dipaddress.py14 import functools namespace
563 @functools.total_ordering
671 @functools.total_ordering
758 @functools.cached_property
763 @functools.cached_property
1334 @functools.lru_cache()
1346 @functools.lru_cache()
1403 @functools.cached_property
1528 @functools.lru_cache()
2008 @functools
[all...]
H A Dlinecache.py8 import functools namespace
179 get_lines = functools.partial(get_source, name)
H A Dcopyreg.py40 import functools, operator namespace
41 return functools.reduce, (operator.or_, obj.__args__)
/third_party/python/Lib/email/
H A D_encoded_words.py45 import functools namespace
64 _q_byte_subber = functools.partial(re.compile(br'=([a-fA-F0-9]{2})').sub,
/third_party/vixl/tools/
H A Dgenerate_tests.py614 import functools namespace
792 pool.map(functools.partial(GenerateTest, clang_format=args.clang_format,
/third_party/backends/backend/pixma/scripts/
H A Dpixma_gen_options.py5 import functools namespace
283 o['code_cap'] = functools.reduce(lambda a,b: a+'|'+b, o['cap'])
288 o['code_info'] = functools.reduce(lambda a,b: a+'|'+b, o['info'])

Completed in 16 milliseconds

12345678