[Tutor] 'continue' inside a 'try'
Guy Friend32
guyfriend32@hotmail.com
Wed, 29 Mar 2000 02:56:55 PST
Hi-
I'm new to exceptions in Python, and I am stuck because
I want a continue inside a try statement. I read FAQ
6.28 that says this is broken. Does anyone have a
work-around for this?
The only thing I could do is a "special" exception:
...some loop...
try:
raise 'continue'
print "skip this"
except 'continue': # do my continue
continue
except: # for all "real" errors
pass
Thank you very much!
-Guy
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com