]> granicus.if.org Git - python/commitdiff
Clarify that __module__ applies to various type of functions.
authorGuido van Rossum <guido@python.org>
Thu, 6 Feb 2003 16:16:50 +0000 (16:16 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 6 Feb 2003 16:16:50 +0000 (16:16 +0000)
Misc/NEWS

index 867fb5c1df8f35a4ab563ee4ed0f899416bc91b9..97da8e3b512bd6a3c93d9e9bf0132d1800356941 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -30,13 +30,14 @@ Core and builtins
   to convert a long integer into a float which couldn't fit.
   See SF bug #676155.
 
-- Function objects now have an __module__ attribute that is bound to
+- Function objects now have a __module__ attribute that is bound to
   the name of the module in which the function was defined.  This
-  attribute is used by pickle.whichmodule(), which changes the 
-  behavior of whichmodule slightly.  In Python 2.2 whichmodule()
-  returns "__main__" for functions that are not defined at the
-  top-level of a module (examples: methods, nested functions).  Now
-  whichmodule() will return the proper module name.
+  applies for C functions and methods as well as functions and methods
+  defined in Python.  This attribute is used by pickle.whichmodule(),
+  which changes the behavior of whichmodule slightly.  In Python 2.2
+  whichmodule() returns "__main__" for functions that are not defined
+  at the top-level of a module (examples: methods, nested functions).
+  Now whichmodule() will return the proper module name.
 
 Extension modules
 -----------------