Home
last modified time | relevance | path

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

/third_party/python/Lib/
Dlinecache.py26 def getline(filename, lineno, module_globals=None): argument
30 lines = getlines(filename, module_globals)
36 def getlines(filename, module_globals=None): argument
46 return updatecache(filename, module_globals)
80 def updatecache(filename, module_globals=None): argument
99 if lazycache(filename, module_globals):
147 def lazycache(filename, module_globals): argument
168 if module_globals and '__name__' in module_globals:
169 name = module_globals['__name__']
170 if (loader := module_globals.get('__loader__')) is None:
[all …]
Denum.py545 module_globals = vars(sys.modules[module])
549 source = module_globals
565 module_globals.update(cls.__members__)
566 module_globals[name] = cls
Dwarnings.py328 module=None, registry=None, module_globals=None, argument
367 linecache.getlines(filename, module_globals)
Ddoctest.py1427 def __patched_linecache_getlines(self, filename, module_globals=None): argument
1433 return self.save_linecache_getlines(filename, module_globals)
/third_party/python/Doc/library/
Dlinecache.rst25 .. function:: getline(filename, lineno, module_globals=None)
34 for a :pep:`302` ``__loader__`` in *module_globals*.
54 .. function:: lazycache(filename, module_globals)
57 lines later via :func:`getline` even if *module_globals* is ``None`` in the later
Dwarnings.rst420 …cit(message, category, filename, lineno, module=None, registry=None, module_globals=None, source=N…
431 *module_globals*, if supplied, should be the global namespace in use by the code
/third_party/python/Python/
D_warnings.c981 get_source_line(PyObject *module_globals, int lineno) in get_source_line() argument
993 loader = _PyDict_GetItemIdWithError(module_globals, &PyId___loader__); in get_source_line()
998 module_name = _PyDict_GetItemIdWithError(module_globals, &PyId___name__); in get_source_line()
1050 PyObject *module_globals = NULL; in warnings_warn_explicit() local
1057 &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()
1064 Py_TYPE(module_globals)->tp_name); in warnings_warn_explicit()
1068 source_line = get_source_line(module_globals, lineno); in warnings_warn_explicit()
/third_party/python/Lib/test/test_warnings/
D__init__.py242 module_globals=None)
248 module_globals=True)
253 module_globals={})
812 module_globals={'__loader__': get_bad_loader(42),
822 module_globals={'__loader__': get_bad_loader([42]),
/third_party/python/Misc/NEWS.d/
D3.7.0b5.rst19 Fix module_globals parameter of warnings.warn_explicit(): don't crash if
20 module_globals is not a dict.
D3.8.0a1.rst1245 Fix module_globals parameter of warnings.warn_explicit(): don't crash if
1246 module_globals is not a dict.
/third_party/python/Lib/test/
Dtest_inspect.py581 def monkey(filename, module_globals=None): argument
585 return getlines(filename, module_globals)