diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-01-05 04:53:27 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-01-05 04:53:27 (GMT) |
commit | 19cdee891ed1320c7f6c6ec54df7d4c838bdc317 (patch) | |
tree | a93d02b2e232b91917977a6fecb78965e81871dc /Doc/faq | |
parent | cad8b0ff8edc2dd6437ee1022977358a16f3860e (diff) | |
download | cpython-19cdee891ed1320c7f6c6ec54df7d4c838bdc317.zip cpython-19cdee891ed1320c7f6c6ec54df7d4c838bdc317.tar.gz cpython-19cdee891ed1320c7f6c6ec54df7d4c838bdc317.tar.bz2 |
Fix example by making the exception inherit from Exception.
Diffstat (limited to 'Doc/faq')
-rw-r--r-- | Doc/faq/design.rst | 2 |
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: ... |