Searched refs:cache_from_source (Results 1 – 25 of 30) sorted by relevance
12
/external/python/cpython3/Lib/test/test_importlib/ |
D | test_util.py | 346 self.assertEqual(self.util.cache_from_source(path, optimization=''), 353 self.util.cache_from_source('whatever.py') 360 self.assertEqual(self.util.cache_from_source(path, optimization=''), 369 self.assertEqual(self.util.cache_from_source(path, False), 370 self.util.cache_from_source(path, optimization=1)) 371 self.assertEqual(self.util.cache_from_source(path, True), 372 self.util.cache_from_source(path, optimization='')) 376 self.util.cache_from_source(path, False) 378 self.util.cache_from_source(path, True) 383 self.assertEqual(self.util.cache_from_source(path, optimization=''), [all …]
|
D | test_pkg_import.py | 9 from importlib.util import cache_from_source 42 compiled_path = cache_from_source(self.module_path)
|
D | test_api.py | 234 cached = self.util.cache_from_source(path) 255 cached = self.util.cache_from_source(init_path) 286 cached = self.util.cache_from_source(bad_path) 315 cached = self.util.cache_from_source(init_path)
|
D | test_spec.py | 55 self.cached = self.util.cache_from_source(self.path) 188 expected = self.util.cache_from_source(self.path) 227 self.cached = self.util.cache_from_source(self.path) 367 self.cached = self.util.cache_from_source(self.path)
|
D | test_abc.py | 628 self.bytecode_path = self.util.cache_from_source(self.path) 674 self.cached = self.util.cache_from_source(self.path) 811 bytecode_path = self.util.cache_from_source(self.path)
|
/external/python/cpython3/Tools/importbench/ |
D | importbench.py | 9 from importlib.util import cache_from_source 69 assert not os.path.exists(cache_from_source(mapping[name])) 84 bytecode_path = cache_from_source(module.__file__) 112 os.unlink(cache_from_source(mapping[name])) 114 assert not os.path.exists(cache_from_source(mapping[name])) 125 os.unlink(cache_from_source(module.__file__)) 145 assert os.path.exists(cache_from_source(mapping[name]))
|
/external/python/cpython3/Lib/test/ |
D | test_compileall.py | 40 return importlib.util.cache_from_source(script, optimization=opt) 61 self.bc_path = importlib.util.cache_from_source(self.source_path) 65 self.bc_path2 = importlib.util.cache_from_source(self.source_path2) 218 cached = importlib.util.cache_from_source(self.source_path, 221 cached2 = importlib.util.cache_from_source(self.source_path2, 224 cached3 = importlib.util.cache_from_source(self.source_path3, 291 pyc_filename = importlib.util.cache_from_source(source) 320 modcode = importlib.util.cache_from_source(mod) 351 bc = importlib.util.cache_from_source(script) 370 bc = importlib.util.cache_from_source(script) [all …]
|
D | test_py_compile.py | 59 self.cache_path = importlib.util.cache_from_source(self.source_path) 141 importlib.util.cache_from_source(bad_coding))) 162 cache_path = importlib.util.cache_from_source(weird_path) 230 self.cache_path = importlib.util.cache_from_source(self.source_path,
|
D | test_runpy.py | 342 "__cached__": importlib.util.cache_from_source(mod_fname), 547 "__cached__": importlib.util.cache_from_source(mod_fname),
|
D | test_reprlib.py | 674 len(importlib.util.cache_from_source("x.py")) - len("x.py"))
|
D | test_zipimport.py | 64 pyc_file = importlib.util.cache_from_source(TESTMOD + '.py')
|
/external/python/cpython3/Lib/test/test_importlib/source/ |
D | test_file_loader.py | 185 self.assertEqual(self.util.cache_from_source(file_path), 189 pycache = os.path.dirname(self.util.cache_from_source(file_path)) 199 compiled = self.util.cache_from_source(source) 243 pyc = self.util.cache_from_source(source) 275 pyc = self.util.cache_from_source(source) 299 pyc = self.util.cache_from_source(source) 330 pyc = self.util.cache_from_source(source) 391 bytecode_path = self.util.cache_from_source(mapping[name]) 639 bytecode_path = self.util.cache_from_source(mapping['_temp']) 657 bytecode_path = self.util.cache_from_source(mapping['_temp'])
|
/external/python/cpython3/Lib/ |
D | py_compile.py | 129 cfile = importlib.util.cache_from_source(file, 132 cfile = importlib.util.cache_from_source(file)
|
D | compileall.py | 219 cfile = (importlib.util.cache_from_source( 223 cfile = importlib.util.cache_from_source(fullname)
|
/external/python/cpython3/Lib/test/support/ |
D | import_helper.py | 50 unlink(importlib.util.cache_from_source(source, optimization=opt)) 60 pyc_file = importlib.util.cache_from_source(source)
|
/external/ply/ply/test/ |
D | testlex.py | 20 from importlib.util import cache_from_source 23 cache_from_source = None variable 32 fullpath = cache_from_source(filename, optimization=optimization) 34 fullpath = cache_from_source(filename, ext=='.pyc')
|
D | testyacc.py | 27 fullpath = importlib.util.cache_from_source(filename, ext=='.pyc')
|
/external/python/cpython3/Lib/test/test_import/ |
D | __init__.py | 674 compiled = importlib.util.cache_from_source(source) 1182 cached_path = importlib.util.cache_from_source(path) 1201 cached_path = importlib.util.cache_from_source(path) 1217 cached_path = importlib.util.cache_from_source(path) 1254 os.rename(importlib.util.cache_from_source(path), bytecode_only) 1276 compiled_name = importlib.util.cache_from_source(file_name) 1545 pyc_path = importlib.util.cache_from_source(self.source) 1562 pyc_path = importlib.util.cache_from_source(self.source) 1572 pyc_file = importlib.util.cache_from_source(self.source) 1601 pyc_file = importlib.util.cache_from_source(TESTFN + '.py') [all …]
|
/external/python/cpython3/Lib/importlib/ |
D | util.py | 9 from ._bootstrap_external import cache_from_source
|
D | _bootstrap_external.py | 513 def cache_from_source(path, debug_override=None, *, optimization=None): function 645 return cache_from_source(filename) 1107 bytecode_path = cache_from_source(source_path)
|
/external/python/cpython3/Doc/deprecations/ |
D | pending-removal-in-future.rst | 61 * :func:`~importlib.util.cache_from_source` *debug_override* parameter is
|
/external/python/cpython3/Lib/zipfile/ |
D | __init__.py | 2211 pycache_opt0 = importlib.util.cache_from_source(file_py, optimization='') 2212 pycache_opt1 = importlib.util.cache_from_source(file_py, optimization=1) 2213 pycache_opt2 = importlib.util.cache_from_source(file_py, optimization=2)
|
/external/python/cpython3/Lib/test/test_pydoc/ |
D | test_pydoc.py | 894 cached_path = importlib.util.cache_from_source(init_path)
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.12.rst | 1468 ``imp.cache_from_source()`` :func:`importlib.util.cache_from_source`
|
D | 3.5.rst | 671 :func:`importlib.util.cache_from_source` has an updated API to help with 2471 :func:`importlib.util.cache_from_source` has gained an *optimization*
|
12