Commit 19cdee89 authored by Ezio Melotti's avatar Ezio Melotti

Fix example by making the exception inherit from Exception.

parent cad8b0ff
...@@ -728,7 +728,7 @@ function calls. Many feel that exceptions can conveniently emulate all ...@@ -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 reasonable uses of the "go" or "goto" constructs of C, Fortran, and other
languages. For example:: languages. For example::
class label: pass # declare a label class label(Exception): pass # declare a label
try: try:
... ...
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment