On Fri, Nov 20, 2009 at 8:08 AM, Stephen Nelson-Smith
<[email protected]> wrote:
> I need to make some code Python 2.4 compliant... the only thing I see
> is use of try: except: finally:
>
> To make this valid, I think I need to do a try: finally: and next try:
> except: inside.  Is this correct?

Yes, the backwards-compatible replacement for try: except: finally: is

try:
  try:
    ...
  except:
    ...
finally:
  ...

Kent
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to