[Python-checkins] python/dist/src/Python compile.c,2.311,2.312

mwh at users.sourceforge.net mwh at users.sourceforge.net
Tue Aug 3 12:24:07 CEST 2004


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22096/Python
Modified Files:
	compile.c 
Log Message:
Don't intern the filename of a file being compiled.
Hard to believe it ever helped anything, and it hurts finding reference
leaks.
Index: compile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/compile.c,v
retrieving revision 2.311
retrieving revision 2.312
diff -C2 -d -r2.311 -r2.312
*** compile.c	2 Aug 2004 11:08:15 -0000	2.311
--- compile.c	3 Aug 2004 10:24:03 -0000	2.312
***************
*** 4732,4736 ****
 		freevars = dict_keys_inorder(sc.c_freevars,
 					 PyTuple_GET_SIZE(cellvars));
! 		filename = PyString_InternFromString(sc.c_filename);
 		name = PyString_InternFromString(sc.c_name);
 		if (!PyErr_Occurred())
--- 4732,4736 ----
 		freevars = dict_keys_inorder(sc.c_freevars,
 					 PyTuple_GET_SIZE(cellvars));
! 		filename = PyString_FromString(sc.c_filename);
 		name = PyString_InternFromString(sc.c_name);
 		if (!PyErr_Occurred())


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /