[Python-checkins] CVS: python/dist/src/Doc/ref ref6.tex,1.48,1.49
Jeremy Hylton
jhylton@users.sourceforge.net
Mon, 01 Apr 2002 13:15:17 -0800
Update of /cvsroot/python/python/dist/src/Doc/ref
In directory usw-pr-cvs1:/tmp/cvs-serv9992
Modified Files:
ref6.tex
Log Message:
Note that it is illegal to delete a cell variable.
Note that deleteing an unbound local will raise a NameError.
Index: ref6.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref6.tex,v
retrieving revision 1.48
retrieving revision 1.49
diff -C2 -d -r1.48 -r1.49
*** ref6.tex 15 Mar 2002 23:21:37 -0000 1.48
--- ref6.tex 1 Apr 2002 21:15:14 -0000 1.49
***************
*** 339,347 ****
to right.
! Deletion of a name removes the binding of that name (which must exist)
from the local or global namespace, depending on whether the name
! occurs in a \keyword{global} statement in the same code block.
\stindex{global}
\indexii{unbinding}{name}
Deletion of attribute references, subscriptions and slicings
--- 339,351 ----
to right.
! Deletion of a name removes the binding of that name
from the local or global namespace, depending on whether the name
! occurs in a \keyword{global} statement in the same code block. If the
! name is unbound, a \exception{NameError} exception will be raised.
\stindex{global}
\indexii{unbinding}{name}
+
+ It is illegal to delete a name from the local namespace if it occurs
+ as a free variable\indexii{free}{varaible} in a nested block.
Deletion of attribute references, subscriptions and slicings