[Python-checkins] python/dist/src/Misc NEWS,1.643,1.644
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Thu, 06 Feb 2003 08:16:53 -0800
Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1:/tmp/cvs-serv29015
Modified Files:
NEWS
Log Message:
Clarify that __module__ applies to various type of functions.
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.643
retrieving revision 1.644
diff -C2 -d -r1.643 -r1.644
*** NEWS 6 Feb 2003 16:00:15 -0000 1.643
--- NEWS 6 Feb 2003 16:16:50 -0000 1.644
***************
*** 31,41 ****
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
--- 31,42 ----
See SF bug #676155.
! - Function objects now have a __module__ attribute that is bound to
the name of the module in which the function was defined. This
! 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