summaryrefslogtreecommitdiff
path: root/Doc/ref/ref6.tex
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2002-04-01 21:15:14 +0000
committerJeremy Hylton <jeremy@alum.mit.edu>2002-04-01 21:15:14 +0000
commitf2af300f8af29424607f2a16479db4b18a6b0694 (patch)
tree4b663a1ab158bab78fbc05a7c56119f289d8a399 /Doc/ref/ref6.tex
parent74dcaaa047f0a9b4ff35bf11ef72ec86a282a973 (diff)
downloadcpython-f2af300f8af29424607f2a16479db4b18a6b0694.tar.gz
Note that it is illegal to delete a cell variable.
Note that deleteing an unbound local will raise a NameError.
Diffstat (limited to 'Doc/ref/ref6.tex')
-rw-r--r--Doc/ref/ref6.tex8
1 files changed, 6 insertions, 2 deletions
diff --git a/Doc/ref/ref6.tex b/Doc/ref/ref6.tex
index 7710472536..0ce94be51a 100644
--- a/Doc/ref/ref6.tex
+++ b/Doc/ref/ref6.tex
@@ -338,12 +338,16 @@ hints.
Deletion of a target list recursively deletes each target, from left
to right.
-Deletion of a name removes the binding of that name (which must exist)
+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.
+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
is passed to the primary object involved; deletion of a slicing
is in general equivalent to assignment of an empty slice of the