From 19cdee891ed1320c7f6c6ec54df7d4c838bdc317 Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Sat, 5 Jan 2013 06:53:27 +0200 Subject: Fix example by making the exception inherit from Exception. --- Doc/faq/design.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: ... -- cgit v0.12