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
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to