mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
different init for __builtins__
This commit is contained in:
parent
cd938fc5a1
commit
b4e7e25fe6
2 changed files with 4 additions and 2 deletions
|
@ -737,8 +737,8 @@ eval_code(co, globals, locals, owner, arg)
|
|||
!suppress_print) {
|
||||
flushline();
|
||||
x = sysget("stdout");
|
||||
softspace(x, 1);
|
||||
err = writeobject(v, x, 0);
|
||||
softspace(x, 1);
|
||||
flushline();
|
||||
}
|
||||
DECREF(v);
|
||||
|
@ -1692,7 +1692,7 @@ object *
|
|||
getbuiltins()
|
||||
{
|
||||
if (current_frame == NULL)
|
||||
return getbuiltindict();
|
||||
return getbuiltinmod();
|
||||
else
|
||||
return current_frame->f_builtins;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue