Home
last modified time | relevance | path

Searched refs:module_globals (Results 1 - 7 of 7) sorted by relevance

/third_party/python/Lib/
H A Dlinecache.py26 def getline(filename, lineno, module_globals=None):
30 lines = getlines(filename, module_globals)
36 def getlines(filename, module_globals=None):
46 return updatecache(filename, module_globals)
80 def updatecache(filename, module_globals=None):
99 if lazycache(filename, module_globals):
147 def lazycache(filename, module_globals):
148 """Seed the cache for filename with module_globals.
168 if module_globals and '__name__' in module_globals
[all...]
H A Dwarnings.py328 module=None, registry=None, module_globals=None,
367 linecache.getlines(filename, module_globals)
H A Denum.py899 module_globals = sys.modules[module].__dict__
903 source = module_globals
926 module_globals[name] = cls
2031 module_globals = sys.modules[module].__dict__
2035 source = module_globals
H A Ddoctest.py1432 def __patched_linecache_getlines(self, filename, module_globals=None):
1438 return self.save_linecache_getlines(filename, module_globals)
/third_party/python/Python/
H A D_warnings.c978 get_source_line(PyInterpreterState *interp, PyObject *module_globals, int lineno) in get_source_line() argument
988 loader = _PyDict_GetItemWithError(module_globals, &_Py_ID(__loader__)); in get_source_line()
993 module_name = _PyDict_GetItemWithError(module_globals, &_Py_ID(__name__)); in get_source_line()
1037 "module", "registry", "module_globals", in warnings_warn_explicit()
1045 PyObject *module_globals = NULL; in warnings_warn_explicit() local
1052 &registry, &module_globals, &sourceobj)) in warnings_warn_explicit()
1060 if (module_globals && module_globals != Py_None) { in warnings_warn_explicit()
1061 if (!PyDict_Check(module_globals)) { in warnings_warn_explicit()
1063 "module_globals mus in warnings_warn_explicit()
[all...]
/third_party/python/Lib/test/test_warnings/
H A D__init__.py240 # bpo-33509: module_globals=None must not crash
242 module_globals=None)
245 # Invalid module_globals type
248 module_globals=True)
251 # Empty module_globals
253 module_globals={})
838 module_globals={'__loader__': get_bad_loader(42),
848 module_globals={'__loader__': get_bad_loader([42]), variable in _WarningsTests.test_issue31285.get_bad_loader.BadLoader.get_source.BadSource
/third_party/python/Lib/test/
H A Dtest_inspect.py652 def monkey(filename, module_globals=None):
656 return getlines(filename, module_globals)

Completed in 17 milliseconds