[Python-checkins] CVS: python/dist/src/Doc/ref ref6.tex,1.34,1.35

Fred L. Drake fdrake@users.sourceforge.net
Mon, 05 Mar 2001 23:34:02 -0800


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

Modified Files:
	ref6.tex 
Log Message:

Do not refer to "sub-modules" since that is not a defined term.


Index: ref6.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref6.tex,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -r1.34 -r1.35
*** ref6.tex	2001/01/30 01:25:15	1.34
--- ref6.tex	2001/03/06 07:34:00	1.35
***************
*** 549,559 ****
  begin.
  
! The first form of \keyword{import} statement binds the module name in the
! local namespace to the module object, and then goes on to import 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 sub-modules 'as' a different
! local name. So 'import module as m' is legal, but 'import module.submod as
! s' is not. The latter should be written as 'from module import submod as s',
  see below.
  
--- 549,560 ----
  begin.
  
! The first form of \keyword{import} statement binds the module name in
! the local namespace to the module object, and then goes on to import
! 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.