Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 32917:41facc3ccdd3 legacy-trunk
Don't intern the filename of a file being compiled.
Hard to believe it ever helped anything, and it hurts finding reference
leaks.
| author | Michael W. Hudson <mwh@python.net> |
|---|---|
| date | Tue, 03 Aug 2004 10:24:03 +0000 |
| parents | 685a948b3bc9 |
| children | 071d3381753b |
line wrap: on
line diff
--- a/Python/compile.c Tue Aug 03 10:21:03 2004 +0000 +++ b/Python/compile.c Tue Aug 03 10:24:03 2004 +0000 @@ -4731,7 +4731,7 @@ cellvars = dict_keys_inorder(sc.c_cellvars, 0); freevars = dict_keys_inorder(sc.c_freevars, PyTuple_GET_SIZE(cellvars)); - filename = PyString_InternFromString(sc.c_filename); + filename = PyString_FromString(sc.c_filename); name = PyString_InternFromString(sc.c_name); if (!PyErr_Occurred()) co = PyCode_New(sc.c_argcount,
