Home
last modified time | relevance | path

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

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dframeobject.c627 PyObject *builtins; in PyFrame_New() local
638 builtins = PyDict_GetItem(globals, builtin_object); in PyFrame_New()
639 if (builtins) { in PyFrame_New()
640 if (PyModule_Check(builtins)) { in PyFrame_New()
641 builtins = PyModule_GetDict(builtins); in PyFrame_New()
642 assert(!builtins || PyDict_Check(builtins)); in PyFrame_New()
644 else if (!PyDict_Check(builtins)) in PyFrame_New()
645 builtins = NULL; in PyFrame_New()
647 if (builtins == NULL) { in PyFrame_New()
650 builtins = PyDict_New(); in PyFrame_New()
[all …]
Dtypeobject.c2890 PyObject *builtins; in object_new() local
2901 builtins = PyEval_GetBuiltins(); in object_new()
2902 if (builtins == NULL) in object_new()
2904 sorted = PyDict_GetItemString(builtins, "sorted"); in object_new()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dframeobject.c629 PyObject *builtins; in PyFrame_New() local
640 builtins = PyDict_GetItem(globals, builtin_object); in PyFrame_New()
641 if (builtins) { in PyFrame_New()
642 if (PyModule_Check(builtins)) { in PyFrame_New()
643 builtins = PyModule_GetDict(builtins); in PyFrame_New()
644 assert(!builtins || PyDict_Check(builtins)); in PyFrame_New()
646 else if (!PyDict_Check(builtins)) in PyFrame_New()
647 builtins = NULL; in PyFrame_New()
649 if (builtins == NULL) { in PyFrame_New()
652 builtins = PyDict_New(); in PyFrame_New()
[all …]
Dtypeobject.c2921 PyObject *builtins; in object_new() local
2932 builtins = PyEval_GetBuiltins(); in object_new()
2933 if (builtins == NULL) in object_new()
2935 sorted = PyDict_GetItemString(builtins, "sorted"); in object_new()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_rlcompleter.py3 import __builtin__ as builtins namespace
35 [x+'(' for x in dir(builtins) if x.startswith('di')])
37 [x+'(' for x in dir(builtins) if x.startswith('st')])
Dpickletester.py1096 builtins = {self.module.__name__: self.module,
1100 exec teststr in {'__builtins__': builtins}, d
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/freeze/
Dfreeze.py387 builtins = []
395 builtins.append(mod)
402 if unknown or (not win and builtins):
405 checkextensions.checkextensions(unknown+builtins,
410 builtins.append(mod)
448 builtins.sort()
452 makeconfig.makeconfig(infp, outfp, builtins)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dcgitb.py72 builtins = frame.f_globals['__builtins__']
73 if type(builtins) is type({}):
74 if name in builtins:
75 return 'builtin', builtins[name]
77 if hasattr(builtins, name):
78 return 'builtin', getattr(builtins, name)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
D_lsprof.c695 int builtins = -1; in profiler_enable() local
698 kwlist, &subcalls, &builtins)) in profiler_enable()
700 if (setSubcalls(self, subcalls) < 0 || setBuiltins(self, builtins) < 0) in profiler_enable()
775 int builtins = 1; in profiler_init() local
777 int builtins = 0; in profiler_init() local
784 &subcalls, &builtins)) in profiler_init()
787 if (setSubcalls(pObj, subcalls) < 0 || setBuiltins(pObj, builtins) < 0) in profiler_init()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/
Dframeobject.h59 ((f)->f_builtins != (f)->f_tstate->interp->builtins)
Dpystate.h23 PyObject *builtins; member
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/
Dframeobject.h59 ((f)->f_builtins != (f)->f_tstate->interp->builtins)
Dpystate.h23 PyObject *builtins; member
/device/google/contexthub/firmware/lib/
Dlib.mk76 BUILTINS_PATH := $(NANOHUB_DIR)/lib/builtins
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dpystate.c73 interp->builtins = NULL; in PyInterpreterState_New()
113 Py_CLEAR(interp->builtins); in PyInterpreterState_Clear()
Dpythonrun.c210 interp->builtins = PyModule_GetDict(bimod); in Py_InitializeEx()
211 if (interp->builtins == NULL) in Py_InitializeEx()
213 Py_INCREF(interp->builtins); in Py_InitializeEx()
592 interp->builtins = PyModule_GetDict(bimod); in Py_NewInterpreter()
593 if (interp->builtins == NULL) in Py_NewInterpreter()
595 Py_INCREF(interp->builtins); in Py_NewInterpreter()
Dimport.c2728 PyObject *builtins = NULL; in find_module() local
2748 builtins = PyObject_GetItem(globals, builtins_str); in find_module()
2749 if (builtins == NULL) in find_module()
2754 builtins = PyImport_ImportModuleLevel("__builtin__", in find_module()
2756 if (builtins == NULL) in find_module()
2758 globals = Py_BuildValue("{OO}", builtins_str, builtins); in find_module()
2764 if (PyDict_Check(builtins)) { in find_module()
2765 import = PyObject_GetItem(builtins, import_str); in find_module()
2770 import = PyObject_GetAttr(builtins, import_str); in find_module()
2781 Py_XDECREF(builtins); in find_module()
Dsysmodule.c92 PyObject *builtins = PyDict_GetItemString(modules, "__builtin__"); in sys_displayhook() local
94 if (builtins == NULL) { in sys_displayhook()
106 if (PyObject_SetAttrString(builtins, "_", Py_None) != 0) in sys_displayhook()
120 if (PyObject_SetAttrString(builtins, "_", o) != 0) in sys_displayhook()
Dceval.c3780 return PyThreadState_GET()->interp->builtins; in PyEval_GetBuiltins()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dpystate.c72 interp->builtins = NULL; in PyInterpreterState_New()
112 Py_CLEAR(interp->builtins); in PyInterpreterState_Clear()
Dpythonrun.c222 interp->builtins = PyModule_GetDict(bimod); in Py_InitializeEx()
223 if (interp->builtins == NULL) in Py_InitializeEx()
225 Py_INCREF(interp->builtins); in Py_InitializeEx()
605 interp->builtins = PyModule_GetDict(bimod); in Py_NewInterpreter()
606 if (interp->builtins == NULL) in Py_NewInterpreter()
608 Py_INCREF(interp->builtins); in Py_NewInterpreter()
Dimport.c2842 PyObject *builtins = NULL; in PyImport_Import() local
2862 builtins = PyObject_GetItem(globals, builtins_str); in PyImport_Import()
2863 if (builtins == NULL) in PyImport_Import()
2868 builtins = PyImport_ImportModuleLevel("__builtin__", in PyImport_Import()
2870 if (builtins == NULL) in PyImport_Import()
2872 globals = Py_BuildValue("{OO}", builtins_str, builtins); in PyImport_Import()
2878 if (PyDict_Check(builtins)) { in PyImport_Import()
2879 import = PyObject_GetItem(builtins, import_str); in PyImport_Import()
2884 import = PyObject_GetAttr(builtins, import_str); in PyImport_Import()
2895 Py_XDECREF(builtins); in PyImport_Import()
Dsysmodule.c92 PyObject *builtins = PyDict_GetItemString(modules, "__builtin__"); in sys_displayhook() local
94 if (builtins == NULL) { in sys_displayhook()
106 if (PyObject_SetAttrString(builtins, "_", Py_None) != 0) in sys_displayhook()
120 if (PyObject_SetAttrString(builtins, "_", o) != 0) in sys_displayhook()
Dceval.c3802 return PyThreadState_GET()->interp->builtins; in PyEval_GetBuiltins()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Python/
Dimport.c2728 PyObject *builtins = NULL; in find_module() local
2748 builtins = PyObject_GetItem(globals, builtins_str); in find_module()
2749 if (builtins == NULL) in find_module()
2754 builtins = PyImport_ImportModuleLevel("__builtin__", in find_module()
2756 if (builtins == NULL) in find_module()
2758 globals = Py_BuildValue("{OO}", builtins_str, builtins); in find_module()
2764 if (PyDict_Check(builtins)) { in find_module()
2765 import = PyObject_GetItem(builtins, import_str); in find_module()
2770 import = PyObject_GetAttr(builtins, import_str); in find_module()
2781 Py_XDECREF(builtins); in find_module()