Home
last modified time | relevance | path

Searched refs:module_globals (Results 1 – 15 of 15) sorted by relevance

/external/python/cpython3/Lib/
Dlinecache.py15 def getline(filename, lineno, module_globals=None): argument
16 lines = getlines(filename, module_globals)
37 def getlines(filename, module_globals=None): argument
47 return updatecache(filename, module_globals)
82 def updatecache(filename, module_globals=None): argument
101 if lazycache(filename, module_globals):
147 def lazycache(filename, module_globals): argument
168 if module_globals and '__loader__' in module_globals:
169 name = module_globals.get('__name__')
170 loader = module_globals['__loader__']
Denum.py612 module_globals = vars(sys.modules[module])
616 source = module_globals
634 module_globals.update(cls.__members__)
635 module_globals[name] = cls
Dwarnings.py322 module=None, registry=None, module_globals=None, argument
362 linecache.getlines(filename, module_globals)
Ddoctest.py1410 def __patched_linecache_getlines(self, filename, module_globals=None): argument
1416 return self.save_linecache_getlines(filename, module_globals)
/external/python/cpython2/Lib/
Dlinecache.py13 def getline(filename, lineno, module_globals=None): argument
14 lines = getlines(filename, module_globals)
33 def getlines(filename, module_globals=None): argument
41 return updatecache(filename, module_globals)
72 def updatecache(filename, module_globals=None): argument
89 if module_globals and '__loader__' in module_globals:
90 name = module_globals.get('__name__')
91 loader = module_globals['__loader__']
Dwarnings.py238 module=None, registry=None, module_globals=None): argument
273 linecache.getlines(filename, module_globals)
Ddoctest.py1393 def __patched_linecache_getlines(self, filename, module_globals=None): argument
1402 return self.save_linecache_getlines(filename, module_globals)
/external/python/cpython3/Doc/library/
Dlinecache.rst25 .. function:: getline(filename, lineno, module_globals=None)
35 ``__loader__`` in *module_globals*, in case the module was imported from a
51 .. function:: lazycache(filename, module_globals)
54 lines later via :func:`getline` even if *module_globals* is ``None`` in the later
Dwarnings.rst329 …cit(message, category, filename, lineno, module=None, registry=None, module_globals=None, source=N…
340 *module_globals*, if supplied, should be the global namespace in use by the code
/external/python/cpython2/Doc/library/
Dlinecache.rst21 .. function:: getline(filename, lineno[, module_globals])
31 ``__loader__`` in *module_globals*, in case the module was imported from a
35 The *module_globals* parameter was added.
Dwarnings.rst311 …nction:: warn_explicit(message, category, filename, lineno[, module[, registry[, module_globals]]])
322 *module_globals*, if supplied, should be the global namespace in use by the code
328 Added the *module_globals* parameter.
/external/python/cpython2/Python/
D_warnings.c632 PyObject *module_globals = NULL; in warnings_warn_explicit() local
636 &registry, &module_globals)) in warnings_warn_explicit()
639 if (module_globals) { in warnings_warn_explicit()
661 loader = PyDict_GetItemString(module_globals, "__loader__"); in warnings_warn_explicit()
662 module_name = PyDict_GetItemString(module_globals, "__name__"); in warnings_warn_explicit()
/external/python/cpython3/Python/
D_warnings.c838 PyObject *module_globals = NULL; in warnings_warn_explicit() local
843 &registry, &module_globals, &sourceobj)) in warnings_warn_explicit()
846 if (module_globals) { in warnings_warn_explicit()
863 loader = PyDict_GetItemString(module_globals, "__loader__"); in warnings_warn_explicit()
864 module_name = PyDict_GetItemString(module_globals, "__name__"); in warnings_warn_explicit()
/external/python/cpython2/Lib/test/
Dtest_inspect.py320 def monkey(filename, module_globals=None): argument
324 return getlines(filename, module_globals)
/external/python/cpython3/Lib/test/
Dtest_inspect.py455 def monkey(filename, module_globals=None): argument
459 return getlines(filename, module_globals)