summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-12-03 19:53:57 (GMT)
committerChristian Heimes <christian@cheimes.de>2007-12-03 19:53:57 (GMT)
commitf9290773fc026c5064fa96e1d06c3924e49fa89b (patch)
treeac767593229fbe98dc8780146cb1dfadd43737dd /Doc
parente69c320d48a5708c900cc6c78bf006fef68c62bd (diff)
downloadcpython-f9290773fc026c5064fa96e1d06c3924e49fa89b.zip
cpython-f9290773fc026c5064fa96e1d06c3924e49fa89b.tar.gz
cpython-f9290773fc026c5064fa96e1d06c3924e49fa89b.tar.bz2
Reverting last commit. I had some staled data from an attempted svnmerge in my local sandbox
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/exceptions.rst7
-rw-r--r--Doc/reference/expressions.rst3
2 files changed, 3 insertions, 7 deletions
diff --git a/Doc/library/exceptions.rst b/Doc/library/exceptions.rst
index 3c404e4..d29ce12 100644
--- a/Doc/library/exceptions.rst
+++ b/Doc/library/exceptions.rst
@@ -135,13 +135,6 @@ The following exceptions are the exceptions that are actually raised.
.. exception:: GeneratorExit
- Raise when a :term:`generator`\'s :meth:`close` method is called. It
- directly inherits from :exc:`BaseException` instead of :exc:`Exception` since
- it is technically not an error.
-
- .. versionchanged:: 3.0
- Changed to inherit from :exc:`BaseException`.
-
Raise when a :term:`generator`\'s :meth:`close` method is called.
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index 4bb0074..64f620b 100644
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -413,6 +413,9 @@ generator functions::
... while True:
... try:
... value = (yield value)
+ ... except GeneratorExit:
+ ... # never catch GeneratorExit
+ ... raise
... except Exception, e:
... value = e
... finally: