/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/ |
D | fix_execfile.py | 27 globals = results.get("globals") 48 if globals is not None: 49 args.extend([Comma(), globals.clone()])
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/tests/ |
D | __init__.py | 22 __import__("",globals(),locals(),[t],level=1) 23 mod = globals()[t]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
D | bdb.py | 376 def run(self, cmd, globals=None, locals=None): argument 377 if globals is None: 379 globals = __main__.__dict__ 381 locals = globals 387 exec cmd in globals, locals 394 def runeval(self, expr, globals=None, locals=None): argument 395 if globals is None: 397 globals = __main__.__dict__ 399 locals = globals 405 return eval(expr, globals, locals) [all …]
|
D | cProfile.py | 39 def runctx(statement, globals, locals, filename=None, sort=-1): argument 49 prof = prof.runctx(statement, globals, locals) 137 def runctx(self, cmd, globals, locals): argument 140 exec cmd in globals, locals
|
D | warnings.py | 188 globals = sys.__dict__ 191 globals = caller.f_globals 193 if '__name__' in globals: 194 module = globals['__name__'] 197 filename = globals.get('__file__') 211 registry = globals.setdefault("__warningregistry__", {}) 213 globals)
|
D | imputil.py | 86 def _import_hook(self, fqname, globals=None, locals=None, fromlist=None): argument 92 parent = self._determine_import_context(globals) 149 def _determine_import_context(self, globals): argument 158 if not globals or not globals.get('__importer__'): 166 parent_fqname = globals['__name__'] 170 if globals['__ispkg__']: 172 assert globals is parent.__dict__
|
D | ihooks.py | 362 def import_module(self, name, globals={}, locals={}, fromlist=[]): argument 404 def import_module(self, name, globals=None, locals=None, fromlist=None, argument 406 parent = self.determine_parent(globals, level) 415 def determine_parent(self, globals, level=-1): argument 416 if not globals or not level: 418 pkgname = globals.get('__package__') 424 modname = globals.get('__name__') 427 if "__path__" in globals: 436 globals['__package__'] = None 439 globals['__package__'] = pkgname
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
D | warnings.py | 192 globals = sys.__dict__ 195 globals = caller.f_globals 197 if '__name__' in globals: 198 module = globals['__name__'] 201 filename = globals.get('__file__') 215 registry = globals.setdefault("__warningregistry__", {}) 217 globals)
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/antlr/ |
D | AntlrPPC.mak | 12 # globals.c 41 "{ObjDir�PPC}globals.c.x" � 81 "{ObjDir�PPC}globals.c.x" � {�MondoBuild�} globals.c 82 {PPCC} globals.c -o {Targ} {PPCCOptions}
|
D | makefile.cygwin | 180 globals.o hash.o lex.o main.o misc.o set.o pred.o egman.o mrhoist.o fcache.o 188 SRC=antlr.c scan.c err.c bits.c build.c fset2.c fset.c gen.c globals.c \
|
D | makefile | 179 globals.o hash.o lex.o main.o misc.o set.o pred.o egman.o mrhoist.o fcache.o 187 SRC=antlr.c scan.c err.c bits.c build.c fset2.c fset.c gen.c globals.c \
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/compiler/ |
D | symbols.py | 21 self.globals = {} 58 self.globals[name] = 1 70 d.update(self.globals) 81 print >> sys.stderr, "\tglobals: ", self.globals 92 if name in self.globals: 111 if name not in self.defs and name not in self.globals: 118 globals = self.add_frees(frees) 119 for name in globals: 135 self.globals[name] = 1
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/hotshot/ |
D | __init__.py | 60 def runctx(self, cmd, globals, locals): argument 67 self._prof.runcode(code, globals, locals)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/ |
D | bltinmodule.c | 41 PyObject *globals = NULL; in builtin___import__() local 47 kwlist, &name, &globals, &locals, &fromlist, &level)) in builtin___import__() 49 return PyImport_ImportModuleLevel(name, globals, locals, in builtin___import__() 624 PyObject *globals = Py_None, *locals = Py_None; in builtin_eval() local 628 if (!PyArg_UnpackTuple(args, "eval", 1, 3, &cmd, &globals, &locals)) in builtin_eval() 634 if (globals != Py_None && !PyDict_Check(globals)) { in builtin_eval() 635 PyErr_SetString(PyExc_TypeError, PyMapping_Check(globals) ? in builtin_eval() 640 if (globals == Py_None) { in builtin_eval() 641 globals = PyEval_GetGlobals(); in builtin_eval() 646 locals = globals; in builtin_eval() [all …]
|
D | _warnings.c | 446 PyObject *globals; in setup_context() local 454 globals = PyThreadState_Get()->interp->sysdict; in setup_context() 458 globals = f->f_globals; in setup_context() 465 assert(globals != NULL); in setup_context() 466 assert(PyDict_Check(globals)); in setup_context() 467 *registry = PyDict_GetItemString(globals, "__warningregistry__"); in setup_context() 475 rc = PyDict_SetItemString(globals, "__warningregistry__", *registry); in setup_context() 483 *module = PyDict_GetItemString(globals, "__name__"); in setup_context() 493 *filename = PyDict_GetItemString(globals, "__file__"); in setup_context()
|
D | import.c | 2191 static PyObject *get_parent(PyObject *globals, char *buf, 2203 import_module_level(char *name, PyObject *globals, PyObject *locals, in import_module_level() argument 2224 parent = get_parent(globals, buf, &buflen, level); in import_module_level() 2287 PyImport_ImportModuleLevel(char *name, PyObject *globals, PyObject *locals, in PyImport_ImportModuleLevel() argument 2292 result = import_module_level(name, globals, locals, fromlist, level); in PyImport_ImportModuleLevel() 2314 get_parent(PyObject *globals, char *buf, Py_ssize_t *p_buflen, int level) in get_parent() argument 2322 if (globals == NULL || !PyDict_Check(globals) || !level) in get_parent() 2343 pkgname = PyDict_GetItem(globals, pkgstr); in get_parent() 2370 modname = PyDict_GetItem(globals, namestr); in get_parent() 2374 modpath = PyDict_GetItem(globals, pathstr); in get_parent() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/ |
D | bltinmodule.c | 41 PyObject *globals = NULL; in builtin___import__() local 47 kwlist, &name, &globals, &locals, &fromlist, &level)) in builtin___import__() 49 return PyImport_ImportModuleLevel(name, globals, locals, in builtin___import__() 616 PyObject *globals = Py_None, *locals = Py_None; in builtin_eval() local 620 if (!PyArg_UnpackTuple(args, "eval", 1, 3, &cmd, &globals, &locals)) in builtin_eval() 626 if (globals != Py_None && !PyDict_Check(globals)) { in builtin_eval() 627 PyErr_SetString(PyExc_TypeError, PyMapping_Check(globals) ? in builtin_eval() 632 if (globals == Py_None) { in builtin_eval() 633 globals = PyEval_GetGlobals(); in builtin_eval() 638 locals = globals; in builtin_eval() [all …]
|
D | _warnings.c | 446 PyObject *globals; in setup_context() local 454 globals = PyThreadState_Get()->interp->sysdict; in setup_context() 458 globals = f->f_globals; in setup_context() 465 assert(globals != NULL); in setup_context() 466 assert(PyDict_Check(globals)); in setup_context() 467 *registry = PyDict_GetItemString(globals, "__warningregistry__"); in setup_context() 475 rc = PyDict_SetItemString(globals, "__warningregistry__", *registry); in setup_context() 483 *module = PyDict_GetItemString(globals, "__name__"); in setup_context() 493 *filename = PyDict_GetItemString(globals, "__file__"); in setup_context()
|
D | import.c | 2106 static PyObject *get_parent(PyObject *globals, char *buf, in find_module() 2118 import_module_level(char *name, PyObject *globals, PyObject *locals, in find_module() 2135 parent = get_parent(globals, buf, &buflen, level); in find_module() 2186 PyImport_ImportModuleLevel(char *name, PyObject *globals, PyObject *locals, in find_module() 2191 result = import_module_level(name, globals, locals, fromlist, level); in find_module() 2213 get_parent(PyObject *globals, char *buf, Py_ssize_t *p_buflen, int level) in find_module() 2221 if (globals == NULL || !PyDict_Check(globals) || !level) in find_module() 2242 pkgname = PyDict_GetItem(globals, pkgstr); in find_module() 2269 modname = PyDict_GetItem(globals, namestr); in find_module() 2273 modpath = PyDict_GetItem(globals, pathstr); in find_module() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_profile.py | 25 prof.runctx("testfunc()", globals(), locals()) 55 prof.runctx(stmt, globals(), locals())
|
D | test_builtin.py | 356 globals = {'a': 1, 'b': 2} 358 self.assertEqual(eval('a', globals) , 1) 359 self.assertEqual(eval('a', globals, locals), 1) 360 self.assertEqual(eval('b', globals, locals), 200) 361 self.assertEqual(eval('c', globals, locals), 300) 365 globals = {'a': 1, 'b': 2} 368 self.assertEqual(eval(unicode('a'), globals), 1) 369 self.assertEqual(eval(unicode('a'), globals, locals), 1) 370 self.assertEqual(eval(unicode('b'), globals, locals), 200) 371 self.assertEqual(eval(unicode('c'), globals, locals), 300) [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/ |
D | funcobject.c | 10 PyFunction_New(PyObject *code, PyObject *globals) in PyFunction_New() argument 22 Py_INCREF(globals); in PyFunction_New() 23 op->func_globals = globals; in PyFunction_New() 51 module = PyDict_GetItem(globals, __name__); in PyFunction_New() 368 PyObject *globals; in func_new() local 380 &PyDict_Type, &globals, in func_new() 427 globals); in func_new()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/ |
D | funcobject.c | 10 PyFunction_New(PyObject *code, PyObject *globals) in PyFunction_New() argument 22 Py_INCREF(globals); in PyFunction_New() 23 op->func_globals = globals; in PyFunction_New() 51 module = PyDict_GetItem(globals, __name__); in PyFunction_New() 368 PyObject *globals; in func_new() local 380 &PyDict_Type, &globals, in func_new() 427 globals); in func_new()
|
D | frameobject.c | 622 PyFrame_New(PyThreadState *tstate, PyCodeObject *code, PyObject *globals, in PyFrame_New() argument 631 if (code == NULL || globals == NULL || !PyDict_Check(globals) || in PyFrame_New() 637 if (back == NULL || back->f_globals != globals) { in PyFrame_New() 638 builtins = PyDict_GetItem(globals, builtin_object); in PyFrame_New() 716 Py_INCREF(globals); in PyFrame_New() 717 f->f_globals = globals; in PyFrame_New() 732 locals = globals; in PyFrame_New()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Python/ |
D | import.c | 2106 static PyObject *get_parent(PyObject *globals, char *buf, in find_module() 2118 import_module_level(char *name, PyObject *globals, PyObject *locals, in find_module() 2135 parent = get_parent(globals, buf, &buflen, level); in find_module() 2186 PyImport_ImportModuleLevel(char *name, PyObject *globals, PyObject *locals, in find_module() 2191 result = import_module_level(name, globals, locals, fromlist, level); in find_module() 2213 get_parent(PyObject *globals, char *buf, Py_ssize_t *p_buflen, int level) in find_module() 2221 if (globals == NULL || !PyDict_Check(globals) || !level) in find_module() 2242 pkgname = PyDict_GetItem(globals, pkgstr); in find_module() 2269 modname = PyDict_GetItem(globals, namestr); in find_module() 2273 modpath = PyDict_GetItem(globals, pathstr); in find_module() [all …]
|