[Python-checkins] cpython (3.2): Fix example by making the exception inherit from Exception.

ezio.melotti python-checkins at python.org
Sat Jan 5 05:54:51 CET 2013


http://hg.python.org/cpython/rev/ed618d1210ae
changeset:   81287:ed618d1210ae
branch:      3.2
parent:      81284:02933454b7ce
user:        Ezio Melotti <ezio.melotti at gmail.com>
date:        Sat Jan 05 06:53:27 2013 +0200
summary:
  Fix example by making the exception inherit from Exception.

files:
  Doc/faq/design.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/faq/design.rst b/Doc/faq/design.rst
--- a/Doc/faq/design.rst
+++ b/Doc/faq/design.rst
@@ -728,7 +728,7 @@
 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:
         ...

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list