[Python-checkins] r58365 - python/branches/alex-py3k/Modules/_picklemodule.c

alexandre.vassalotti python-checkins at python.org
Mon Oct 8 07:22:37 CEST 2007


Author: alexandre.vassalotti
Date: Mon Oct  8 07:22:37 2007
New Revision: 58365

Modified:
   python/branches/alex-py3k/Modules/_picklemodule.c
Log:
Be slightly more specific about the rare case where __module__ is None.


Modified: python/branches/alex-py3k/Modules/_picklemodule.c
==============================================================================
--- python/branches/alex-py3k/Modules/_picklemodule.c	(original)
+++ python/branches/alex-py3k/Modules/_picklemodule.c	Mon Oct  8 07:22:37 2007
@@ -659,8 +659,9 @@
 
     module = PyObject_GetAttrString(global, "__module__");
 
-    /* In some cases (e.g., C functions), __module__ can be None. If it is so, 
-       then search sys.modules for the module of global.  */
+    /* In some rare cases (e.g., random.getrandbits), __module__ can be
+       None. If it is so, then search sys.modules for the module of
+       global.  */
     if (module == Py_None)
         goto search;
 


More information about the Python-checkins mailing list