[Python-checkins] CVS: python/dist/src/Misc NEWS,1.119,1.120

Guido van Rossum gvanrossum@users.sourceforge.net
Sat, 03 Feb 2001 07:06:43 -0800


Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv1719

Modified Files:
	NEWS 
Log Message:
Clarify the news item about "from M import X" if "M is not a real
module" after a complaint from Tim.


Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.119
retrieving revision 1.120
diff -C2 -r1.119 -r1.120
*** NEWS	2001/02/02 21:24:51	1.119
--- NEWS	2001/02/03 15:06:40	1.120
***************
*** 189,195 ****
  - Two changes to from...import:
  
!   1) "from M import X" now works even if M is not a real module; it's
!      basically a getattr() operation with AttributeError exceptions
!      changed into ImportError.
  
    2) "from M import *" now looks for M.__all__ to decide which names to
--- 189,195 ----
  - Two changes to from...import:
  
!   1) "from M import X" now works even if (after loading module M)
!      sys.modules['M'] is not a real module; it's basically a getattr()
!      operation with AttributeError exceptions changed into ImportError.
  
    2) "from M import *" now looks for M.__all__ to decide which names to