[Python-checkins] python/dist/src/Doc/ref ref6.tex,1.59,1.60

loewis@users.sourceforge.net loewis@users.sourceforge.net
Thu, 16 Jan 2003 03:30:11 -0800


Update of /cvsroot/python/python/dist/src/Doc/ref
In directory sc8-pr-cvs1:/tmp/cvs-serv32269

Modified Files:
	ref6.tex 
Log Message:
Patch #662454: import a.b as c is ok, fixes #660811.


Index: ref6.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref6.tex,v
retrieving revision 1.59
retrieving revision 1.60
diff -C2 -d -r1.59 -r1.60
*** ref6.tex	6 Jan 2003 12:54:54 -0000	1.59
--- ref6.tex	16 Jan 2003 11:30:08 -0000	1.60
***************
*** 679,687 ****
  the next identifier, if any.  If the module name is followed by
  \keyword{as}, the name following \keyword{as} is used as the local
! name for the module. To avoid confusion, you cannot import modules
! with dotted names \keyword{as} a different local name. So \code{import
! module as m} is legal, but \code{import module.submod as s} is not.
! The latter should be written as \code{from module import submod as s};
! see below.
  
  The \keyword{from} form does not bind the module name: it goes through the
--- 679,683 ----
  the next identifier, if any.  If the module name is followed by
  \keyword{as}, the name following \keyword{as} is used as the local
! name for the module. 
  
  The \keyword{from} form does not bind the module name: it goes through the