using try and except, what is wrong with this?

David Ang davidang at info.com.ph
Tue May 27 03:46:57 EDT 2003


hello,

this is exactly from your tutorial documentation, but my python
interpreter is complaining...

>>> def this_fail():
	x = 1/0

>>> try:
	this_fail()
    except ZeroDivisionError, detail:

IndentationError: unindent does not match any outer indentation level
(line 3)

thanks.




More information about the Python-list mailing list