Home
last modified time | relevance | path

Searched refs:locals (Results 1 – 25 of 85) sorted by relevance

1234

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dcode.py37 def __init__(self, locals=None): argument
46 if locals is None:
47 locals = {"__name__": "__console__", "__doc__": None}
48 self.locals = locals
103 exec code in self.locals
182 def __init__(self, locals=None, filename="<console>"): argument
192 InteractiveInterpreter.__init__(self, locals)
Dcgitb.py65 def lookup(name, frame, locals): argument
67 if name in locals:
68 return 'local', locals[name]
81 def scanvars(reader, frame, locals): argument
92 where, value = lookup(token, frame, locals)
125 args, varargs, varkw, locals = inspect.getargvalues(frame)
129 inspect.formatargvalues(args, varargs, varkw, locals,
137 vars = scanvars(reader, frame, locals)
209 args, varargs, varkw, locals = inspect.getargvalues(frame)
213 inspect.formatargvalues(args, varargs, varkw, locals,
[all …]
DcProfile.py39 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
Dbdb.py376 def run(self, cmd, globals=None, locals=None): argument
380 if locals is None:
381 locals = globals
387 exec cmd in globals, locals
394 def runeval(self, expr, globals=None, locals=None): argument
398 if locals is None:
399 locals = globals
405 return eval(expr, globals, locals)
412 def runctx(self, cmd, globals, locals): argument
414 self.run(cmd, globals, locals)
Dpdb.py223 locals = self.curframe_locals
234 exec code in globals, locals
715 locals = self.curframe_locals
719 sys.call_tracing(p.run, (arg, globals, locals))
1237 def run(statement, globals=None, locals=None): argument
1238 Pdb().run(statement, globals, locals)
1240 def runeval(expression, globals=None, locals=None): argument
1241 return Pdb().runeval(expression, globals, locals)
1243 def runctx(statement, globals, locals): argument
1245 run(statement, globals, locals)
Dprofile.py78 def runctx(statement, globals, locals, filename=None, sort=-1): argument
86 prof = prof.runctx(statement, globals, locals)
449 def runctx(self, cmd, globals, locals): argument
453 exec cmd in globals, locals
551 p.runctx('f(m)', globals(), locals())
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dframeobject.c625 PyObject *locals) in PyFrame_New() argument
634 (locals != NULL && !PyMapping_Check(locals))) { in PyFrame_New()
725 locals = PyDict_New(); in PyFrame_New()
726 if (locals == NULL) { in PyFrame_New()
730 f->f_locals = locals; in PyFrame_New()
733 if (locals == NULL) in PyFrame_New()
734 locals = globals; in PyFrame_New()
735 Py_INCREF(locals); in PyFrame_New()
736 f->f_locals = locals; in PyFrame_New()
873 PyObject *locals, *map; in PyFrame_FastToLocals() local
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dframeobject.c623 PyObject *locals) in PyFrame_New() argument
632 (locals != NULL && !PyMapping_Check(locals))) { in PyFrame_New()
723 locals = PyDict_New(); in PyFrame_New()
724 if (locals == NULL) { in PyFrame_New()
728 f->f_locals = locals; in PyFrame_New()
731 if (locals == NULL) in PyFrame_New()
732 locals = globals; in PyFrame_New()
733 Py_INCREF(locals); in PyFrame_New()
734 f->f_locals = locals; in PyFrame_New()
871 PyObject *locals, *map; in PyFrame_FastToLocals() local
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/
Dfix_execfile.py28 locals = results.get("locals")
50 if locals is not None:
51 args.extend([Comma(), locals.clone()])
Dfix_itertools.py23 """ %(locals())
Dfix_itertools_imports.py12 """ %(locals())
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/hotshot/
D__init__.py60 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/
Dbltinmodule.c42 PyObject *locals = 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()
630 if (locals != Py_None && !PyMapping_Check(locals)) { in builtin_eval()
642 if (locals == Py_None) in builtin_eval()
643 locals = PyEval_GetLocals(); in builtin_eval()
645 else if (locals == Py_None) in builtin_eval()
646 locals = globals; in builtin_eval()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dbltinmodule.c42 PyObject *locals = 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()
622 if (locals != Py_None && !PyMapping_Check(locals)) { in builtin_eval()
634 if (locals == Py_None) in builtin_eval()
635 locals = PyEval_GetLocals(); in builtin_eval()
637 else if (locals == Py_None) in builtin_eval()
638 locals = globals; in builtin_eval()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_profile.py25 prof.runctx("testfunc()", globals(), locals())
55 prof.runctx(stmt, globals(), locals())
Dtest_threading_local.py79 locals = None
98 passed[0] = all(not hasattr(local, 'foo') for local in locals)
107 locals = [Local() for i in range(10)]
Dtest_scope.py329 """ in locals()
471 return locals()
495 locals()
505 z = list(locals())
Dtest_tokenize.py547 print("%(type)-10.10s %(token)-13.13r %(start)s %(end)s" % locals())
Dtest_builtin.py357 locals = {'b': 200, 'c': 300}
359 self.assertEqual(eval('a', globals, locals), 1)
360 self.assertEqual(eval('b', globals, locals), 200)
361 self.assertEqual(eval('c', globals, locals), 300)
366 locals = {'b': 200, 'c': 300}
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)
373 self.assertEqual(eval(bom + 'a', globals, locals), 1)
465 locals = {'b': 200, 'c': 300}
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/
Deval.h14 PyObject *locals,
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/
Deval.h14 PyObject *locals,
Dimport.h19 PyObject *globals, PyObject *locals, PyObject *fromlist, int level);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/tests/
D__init__.py22 __import__("",globals(),locals(),[t],level=1)
/device/linaro/bootloader/edk2/BaseTools/Tests/
DTianoCompress.py68 TheTestSuite = TestTools.MakeTheTestSuite(locals())
DCheckPythonSyntax.py68 TheTestSuite = TestTools.MakeTheTestSuite(locals())

1234