From: Ezio Melotti Date: Sat, 5 Jan 2013 04:53:27 +0000 (+0200) Subject: Fix example by making the exception inherit from Exception. X-Git-Tag: v3.2.4rc1~250 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=19cdee891ed1320c7f6c6ec54df7d4c838bdc317;p=thirdparty%2FPython%2Fcpython.git Fix example by making the exception inherit from Exception. --- diff --git a/Doc/faq/design.rst b/Doc/faq/design.rst index 7c5116d0e268..44931fd68974 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: ...