diff options
| author | Michael W. Hudson <mwh@python.net> | 2004-08-04 10:26:08 +0000 |
|---|---|---|
| committer | Michael W. Hudson <mwh@python.net> | 2004-08-04 10:26:08 +0000 |
| commit | 394f0f878401d27a36d189ef70ac6b889abd9ac4 (patch) | |
| tree | 6eaff06b26f315668630753ba7f8411647eaf482 /Python | |
| parent | b82a5d249d3ff32005b149739dea01088bbef2f5 (diff) | |
| download | cpython-394f0f878401d27a36d189ef70ac6b889abd9ac4.tar.gz | |
Revert 2.312; turns out interning the file name did do some good (reducing
.pyc size) after all.
Diffstat (limited to 'Python')
| -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 5abf2b8876..0b5ba6cd38 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, |
