[IronPython] Welcome to the "users" mailing list
Feraas Darweesh
fdarweesh at gmail.com
Tue Jan 9 12:55:04 CET 2007
Sorry this duplication happened after changing the message format
# === start ===
def Divide(self,x,y):
try:
result = x / y
except ZeroDivisionError:
MessageBox.Show("division by zero!")
else:
MessageBox.Show("result is "+result.ToString())
finally:
MessageBox.Show("This Is Finally Statment")
# === End ====
On 1/9/07, Sanghyeon Seo <sanxiyn at gmail.com> wrote:
> 2007/1/9, Feraas Darweesh <fdarweesh at gmail.com>:
> > The finally statment always gives me an error, can any one help me on this
>
> What error do you get? (The code you pasted is surely in error. Why do you
> have "Divide(self)" tacked after print statement, for example?)
>
> Also, it is (correctly) a SyntaxError to use both except and finally
> in Python 2.4.
> Use -X:Python25 to get 2.5 behaviour.
>
> --
> Seo Sanghyeon
> _______________________________________________
> users mailing list
> users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
More information about the Ironpython-users
mailing list