diff Python/pythonrun.c @ 60648:7b69e630d237

PEP 3147
author Barry Warsaw <barry@python.org>
date Sat, 17 Apr 2010 00:19:56 +0000
parents 768722b2ae0a
children 85ac27fa913f
line wrap: on
line diff
--- a/Python/pythonrun.c	Fri Apr 16 23:49:32 2010 +0000
+++ b/Python/pythonrun.c	Sat Apr 17 00:19:56 2010 +0000
@@ -1155,6 +1155,8 @@
 			Py_DECREF(f);
 			return -1;
 		}
+		if (PyDict_SetItemString(d, "__cached__", Py_None) < 0)
+			return -1;
 		set_file_name = 1;
 		Py_DECREF(f);
 	}