unlearned at DELETETHIS.learn2think.org
Mon Aug 5 22:37:02 CEST 2002
"Jonas Geiregat" <kemu at sdf-eu.org> wrote in message
news:3d4ee05a$0$271$ba620e4c at news.skynet.be...
> what is wrong here try: raise IndexError except: print
> sys.exc_info( ) this come's from o'reilly's book on python and it give me
> an error =>
> IndentationError: unindent does not match any outer indentation level
I'm not sure how your original indentation looked (perhaps it was destroyed
by my mail reader or something else along the way), but as far as I can tell
the indentation for this code should look something like this:
The entire block could be indented also, but it is necessary for the try:
and except: to line up vertically. Also, be aware that mixing tabs and
spaces can cause problems, especially if the settings in your editor and
your current python settings do not match up.
Does that help?
Daniel Fackrell (unlearned at learn2think.org)
When we attempt the impossible, we can experience true growth.
More information about the Python-list