1. Armin Rigo
  2. cpython-withatomic

Commits

Michael W. Hudson  committed 071d338

Revert 2.312; turns out interning the file name did do some good (reducing
.pyc size) after all.

  • Participants
  • Parent commits e2fea22
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Python/compile.c

View file
 		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,