[IronPython] Welcome to the "users" mailing list

Feraas Darweesh fdarweesh at gmail.com
Tue Jan 9 11:54:48 CET 2007


Hello:

The finally  statment always gives me an error, can any one help me on this

#- ==== sample code

def Divide(self):
    try:
         result = x / y
    except ZeroDivisionError:
        print "division by zero!" Divide(self):
    try:
         result = x / y
    except ZeroDivisionError:
        print "division by zero!"    except ZeroDivisionError:
    else:
        print "result is", result
    finally:
        print "executing finally clause"

# === ending of the code ===

Note:

I'm using  VS2005 as IDE

Best Regards



More information about the Ironpython-users mailing list