GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • [Python-Dev] Fwd: try...else
  • [Python-Dev] Fwd: try...else
  • [ date ]
  • [ thread ]
  • [ subject ]
  • [ author ]

This view

  • Original page
  • New address

GeezerVison is showing mail.python.org — [Python-Dev] Fwd: try...else

[Python-Dev] Fwd: try...else

Moshe Zadka [email protected]
28 Dec 2000 16:28:07 -0000

  • Previous message: [Python-Dev] Fwd: try...else
  • Next message: [Python-Dev] Fwd: try...else
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

On Thu, 28 Dec 2000, "M.-A. Lemburg" <[email protected]> wrote:

> He does have a point however that 'return' will bypass 
> try...else and try...finally clauses. I don't think we can change
> that behaviour, though, as it would break code.

It doesn't bypass try..finally:

>>> def foo():
...     try:
...             print "hello"
...             return
...     finally:
...             print "goodbye"
...
>>> foo()
hello
goodbye




  • Previous message: [Python-Dev] Fwd: try...else
  • Next message: [Python-Dev] Fwd: try...else
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.