Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e51c4f9

Browse files
author
Michael W. Hudson
committed
Revert 2.312; turns out interning the file name did do some good (reducing
.pyc size) after all.
1 parent eb477d0 commit e51c4f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4731,7 +4731,7 @@ jcompile(node *n, const char *filename, struct compiling *base,
47314731
cellvars = dict_keys_inorder(sc.c_cellvars, 0);
47324732
freevars = dict_keys_inorder(sc.c_freevars,
47334733
PyTuple_GET_SIZE(cellvars));
4734-
filename = PyString_FromString(sc.c_filename);
4734+
filename = PyString_InternFromString(sc.c_filename);
47354735
name = PyString_InternFromString(sc.c_name);
47364736
if (!PyErr_Occurred())
47374737
co = PyCode_New(sc.c_argcount,

0 commit comments

Comments
 (0)