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) ... except NameError as e: ... print 'E is: ' + `e` ... E is: NameError("name 'fakefile' is not defined",) When entering the same code into Visual Studio 2008, it doesn’t like the syntax at all and highlights the 'as e' part as a syntax error. Has anyone seen this before and know a way around it at all please? As it works in the IPY console and is valid Python, I'm presuming it is a bug within VS? Thanks, B
_______________________________________________ Ironpython-users mailing list Ironpython-users@python.org http://mail.python.org/mailman/listinfo/ironpython-users