[Python-checkins] python/dist/src/Python import.c,2.225,2.226

jhylton at users.sourceforge.net jhylton at users.sourceforge.net
Fri Jan 2 18:25:43 EST 2004


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv18074

Modified Files:
	import.c 
Log Message:
Add comment to mollify Tim.


Index: import.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/import.c,v
retrieving revision 2.225
retrieving revision 2.226
diff -C2 -d -r2.225 -r2.226
*** import.c	20 Nov 2003 01:44:58 -0000	2.225
--- import.c	2 Jan 2004 23:25:32 -0000	2.226
***************
*** 595,598 ****
--- 595,600 ----
  	if (m == NULL)
  		return NULL;
+ 	/* If the module is being reloaded, we get the old module back
+ 	   and re-use its dict to exec the new code. */
  	d = PyModule_GetDict(m);
  	if (PyDict_GetItemString(d, "__builtins__") == NULL) {





More information about the Python-checkins mailing list