Re: [IronPython] SyntaxError: yield in more than one try blocks

2007-05-10 Thread Sylvain Hellegouarch
; From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sylvain >> Hellegouarch >> Sent: Thursday, May 10, 2007 3:40 AM >> To: Discussion of IronPython >> Subject: [IronPython] SyntaxError: yield in more than one try blocks >> >> [EMAIL PROTECTED] mo

Re: [IronPython] SyntaxError: yield in more than one try blocks

2007-05-10 Thread Martin Maly
Absolutely! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sylvain Hellegouarch Sent: Thursday, May 10, 2007 10:31 AM To: Discussion of IronPython Subject: Re: [IronPython] SyntaxError: yield in more than one try blocks I assume you are looking at a

Re: [IronPython] SyntaxError: yield in more than one try blocks

2007-05-10 Thread Sylvain Hellegouarch
arch > Sent: Thursday, May 10, 2007 3:40 AM > To: Discussion of IronPython > Subject: [IronPython] SyntaxError: yield in more than one try blocks > > [EMAIL PROTECTED] mono bin/ipy.exe > IronPython 1.1 (1.1) on .NET 2.0.50727.42 > > def test(): > try: > yield

Re: [IronPython] SyntaxError: yield in more than one try blocks

2007-05-10 Thread Martin Maly
more than one try blocks [EMAIL PROTECTED] mono bin/ipy.exe IronPython 1.1 (1.1) on .NET 2.0.50727.42 def test(): try: yield 1 except: try: yield 2 except: pass if __name__ == '__main__': for _ in test(): print _ Wi

[IronPython] SyntaxError: yield in more than one try blocks

2007-05-10 Thread Sylvain Hellegouarch
[EMAIL PROTECTED] mono bin/ipy.exe IronPython 1.1 (1.1) on .NET 2.0.50727.42 def test(): try: yield 1 except: try: yield 2 except: pass if __name__ == '__main__': for _ in test(): print _ Will produce: [EMAIL PROTECTED] mono bi