summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-01-05 04:53:27 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-01-05 04:53:27 (GMT)
commit19cdee891ed1320c7f6c6ec54df7d4c838bdc317 (patch)
treea93d02b2e232b91917977a6fecb78965e81871dc
parentcad8b0ff8edc2dd6437ee1022977358a16f3860e (diff)
downloadcpython-19cdee891ed1320c7f6c6ec54df7d4c838bdc317.zip
cpython-19cdee891ed1320c7f6c6ec54df7d4c838bdc317.tar.gz
cpython-19cdee891ed1320c7f6c6ec54df7d4c838bdc317.tar.bz2
Fix example by making the exception inherit from Exception.
-rw-r--r--Doc/faq/design.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/faq/design.rst b/Doc/faq/design.rst
index 7c5116d..44931fd 100644
--- a/Doc/faq/design.rst
+++ b/Doc/faq/design.rst
@@ -728,7 +728,7 @@ function calls. Many feel that exceptions can conveniently emulate all
reasonable uses of the "go" or "goto" constructs of C, Fortran, and other
languages. For example::
- class label: pass # declare a label
+ class label(Exception): pass # declare a label
try:
...