mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Revert 2.312; turns out interning the file name did do some good (reducing
.pyc size) after all.
This commit is contained in:
parent
eb477d04f7
commit
e51c4f9a10
1 changed files with 1 additions and 1 deletions
|
@ -4731,7 +4731,7 @@ jcompile(node *n, const char *filename, struct compiling *base,
|
||||||
cellvars = dict_keys_inorder(sc.c_cellvars, 0);
|
cellvars = dict_keys_inorder(sc.c_cellvars, 0);
|
||||||
freevars = dict_keys_inorder(sc.c_freevars,
|
freevars = dict_keys_inorder(sc.c_freevars,
|
||||||
PyTuple_GET_SIZE(cellvars));
|
PyTuple_GET_SIZE(cellvars));
|
||||||
filename = PyString_FromString(sc.c_filename);
|
filename = PyString_InternFromString(sc.c_filename);
|
||||||
name = PyString_InternFromString(sc.c_name);
|
name = PyString_InternFromString(sc.c_name);
|
||||||
if (!PyErr_Occurred())
|
if (!PyErr_Occurred())
|
||||||
co = PyCode_New(sc.c_argcount,
|
co = PyCode_New(sc.c_argcount,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue