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 <[EMAIL PROTECTED]> wrote:
> 2007/1/9, Feraas Darweesh <[EMAIL PROTECTED]>:
> > 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
> [email protected]
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to