/external/python/cpython3/Lib/ |
D | linecache.py | 26 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 '__loader__' in module_globals: 169 name = module_globals.get('__name__') 170 loader = module_globals['__loader__']
|
D | enum.py | 454 module_globals = vars(sys.modules[module]) 458 source = module_globals 474 module_globals.update(cls.__members__) 475 module_globals[name] = cls
|
D | warnings.py | 328 module=None, registry=None, module_globals=None, argument 367 linecache.getlines(filename, module_globals)
|
D | doctest.py | 1417 def __patched_linecache_getlines(self, filename, module_globals=None): argument 1423 return self.save_linecache_getlines(filename, module_globals)
|
/external/python/cpython2/Lib/ |
D | linecache.py | 13 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__']
|
D | warnings.py | 238 module=None, registry=None, module_globals=None): argument 273 linecache.getlines(filename, module_globals)
|
D | doctest.py | 1393 def __patched_linecache_getlines(self, filename, module_globals=None): argument 1402 return self.save_linecache_getlines(filename, module_globals)
|
/external/python/cpython3/Doc/library/ |
D | linecache.rst | 25 .. 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
|
D | warnings.rst | 420 …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
|
/external/python/cpython2/Doc/library/ |
D | linecache.rst | 21 .. 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.
|
D | warnings.rst | 311 …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/cpython3/Python/ |
D | _warnings.c | 987 get_source_line(PyObject *module_globals, int lineno) in get_source_line() argument 999 loader = _PyDict_GetItemIdWithError(module_globals, &PyId___loader__); in get_source_line() 1004 module_name = _PyDict_GetItemIdWithError(module_globals, &PyId___name__); in get_source_line() 1056 PyObject *module_globals = NULL; in warnings_warn_explicit() local 1063 ®istry, &module_globals, &sourceobj)) in warnings_warn_explicit() 1066 if (module_globals && module_globals != Py_None) { in warnings_warn_explicit() 1067 if (!PyDict_Check(module_globals)) { in warnings_warn_explicit() 1070 Py_TYPE(module_globals)->tp_name); in warnings_warn_explicit() 1074 source_line = get_source_line(module_globals, lineno); in warnings_warn_explicit()
|
/external/python/cpython2/Python/ |
D | _warnings.c | 638 PyObject *module_globals = NULL; in warnings_warn_explicit() local 642 ®istry, &module_globals)) in warnings_warn_explicit() 645 if (module_globals) { in warnings_warn_explicit() 667 loader = PyDict_GetItemString(module_globals, "__loader__"); in warnings_warn_explicit() 668 module_name = PyDict_GetItemString(module_globals, "__name__"); in warnings_warn_explicit()
|
/external/python/enum34/enum/ |
D | __init__.py | 798 module_globals = vars(_sys.modules[module]) 802 source = module_globals 806 module_globals.update(cls.__members__) 807 module_globals[name] = cls
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.7.0b5.rst | 19 Fix module_globals parameter of warnings.warn_explicit(): don't crash if 20 module_globals is not a dict.
|
D | 3.8.0a1.rst | 1245 Fix module_globals parameter of warnings.warn_explicit(): don't crash if 1246 module_globals is not a dict.
|
/external/python/cpython2/Lib/test/ |
D | test_inspect.py | 321 def monkey(filename, module_globals=None): argument 325 return getlines(filename, module_globals)
|
D | test_warnings.py | 608 module_globals={'__loader__': BadLoader(),
|
/external/python/cpython3/Lib/test/ |
D | test_inspect.py | 567 def monkey(filename, module_globals=None): argument 571 return getlines(filename, module_globals)
|