[EMAIL PROTECTED] wrote:
Goto is useful [...] when there is a clean-up section of a function
that should be executed for various error conditions.

Like this?

def foo():
    f = open('foo.txt')
    try:
        # do stuff with f
    finally:
        f.close()
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to