summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2003-02-06 16:00:15 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2003-02-06 16:00:15 (GMT)
commit0253d6eff194a12e2e60bfb9f372de9825bdfab3 (patch)
tree2fd2dd6b427dfb6aee8891e92b7ee1ac519e4040 /Misc
parentc9172d3832c2bbdf093f3ec428574d83407f46c8 (diff)
downloadcpython-0253d6eff194a12e2e60bfb9f372de9825bdfab3.zip
cpython-0253d6eff194a12e2e60bfb9f372de9825bdfab3.tar.gz
cpython-0253d6eff194a12e2e60bfb9f372de9825bdfab3.tar.bz2
Add news item about __module__ attribute on functions.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS8
1 files changed, 8 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 25cbe69..867fb5c 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -30,6 +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
+ 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.
+
Extension modules
-----------------