diff options
author | Michael W. Hudson <mwh@python.net> | 2004-08-04 10:26:08 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2004-08-04 10:26:08 (GMT) |
commit | e51c4f9a10f3a0a7e73e893133015247d8cefa21 (patch) | |
tree | b25f03bbacb3bdad975b8953981c95744a7726bd /Python/compile.c | |
parent | eb477d04f7be4bfbf356825a0d832c012dab1ac7 (diff) | |
download | cpython-e51c4f9a10f3a0a7e73e893133015247d8cefa21.zip cpython-e51c4f9a10f3a0a7e73e893133015247d8cefa21.tar.gz cpython-e51c4f9a10f3a0a7e73e893133015247d8cefa21.tar.bz2 |
Revert 2.312; turns out interning the file name did do some good (reducing
.pyc size) after all.
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index 5abf2b8..0b5ba6c 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -4731,7 +4731,7 @@ jcompile(node *n, const char *filename, struct compiling *base, cellvars = dict_keys_inorder(sc.c_cellvars, 0); freevars = dict_keys_inorder(sc.c_freevars, PyTuple_GET_SIZE(cellvars)); - filename = PyString_FromString(sc.c_filename); + filename = PyString_InternFromString(sc.c_filename); name = PyString_InternFromString(sc.c_name); if (!PyErr_Occurred()) co = PyCode_New(sc.c_argcount, |