Home
last modified time | relevance | path

Searched refs:bimod (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Python/
Dpylifecycle.c641 PyObject *bimod = _PyBuiltin_Init(tstate); in pycore_init_builtins() local
642 if (bimod == NULL) { in pycore_init_builtins()
647 if (_PyImport_FixupBuiltin(bimod, "builtins", interp->modules) < 0) { in pycore_init_builtins()
651 PyObject *builtins_dict = PyModule_GetDict(bimod); in pycore_init_builtins()
658 PyStatus status = _PyBuiltins_AddExceptions(bimod); in pycore_init_builtins()
667 Py_DECREF(bimod); in pycore_init_builtins()
674 Py_XDECREF(bimod); in pycore_init_builtins()
1691 PyObject *bimod = PyImport_ImportModule("builtins"); in add_main_module() local
1692 if (bimod == NULL) { in add_main_module()
1695 if (PyDict_SetItemString(d, "__builtins__", bimod) < 0) { in add_main_module()
[all …]
/external/python/cpython2/Python/
Dpythonrun.c166 PyObject *bimod, *sysmod; in Py_InitializeEx() local
240 bimod = _PyBuiltin_Init(); in Py_InitializeEx()
241 if (bimod == NULL) in Py_InitializeEx()
243 interp->builtins = PyModule_GetDict(bimod); in Py_InitializeEx()
589 PyObject *bimod, *sysmod; in Py_NewInterpreter() local
611 bimod = _PyImport_FindExtension("__builtin__", "__builtin__"); in Py_NewInterpreter()
612 if (bimod != NULL) { in Py_NewInterpreter()
613 interp->builtins = PyModule_GetDict(bimod); in Py_NewInterpreter()
619 if (bimod != NULL && sysmod != NULL) { in Py_NewInterpreter()
721 PyObject *bimod = PyImport_ImportModule("__builtin__"); in initmain() local
[all …]