Re: [Ironpython-users] Exception handling in VS 2008

2012-02-06 Thread Jeff Hardy
The VS2008 integration is old, awful, was built by the VS Integration team and not the IronPython team, and based in IronPython 1.0. That version of IronPython predates the `except ... as ...:` syntax, which is why it's a syntax error. You can run Python Tools for Visual Studio (pytools.codeplex.c

[Ironpython-users] Exception handling in VS 2008

2012-02-05 Thread Cash
Hi, I'm getting issues with try / except blocks in VS 2008, particularly with the following way of catching the errors: try: something except Error as e: do something with e When I try this directly from the IPY console it works fine: >>> try: ... open(fakefile.txt)