[IronPython] New-style exceptions in Python 2.5
dinov at exchange.microsoft.com
Fri Oct 27 09:11:25 PDT 2006
There's also several other Python 2.5 features we don't yet support. We're hoping to get to these for 1.1.
For new-style exceptions we'll update the ExceptionConverter to use new-style classes instead of old-style classes. The hope is that the rest of the runtime then basically picks this change up for free because it's abstracted away from it. If that works as planned then the -X:Python25 feature could switch the exception modes as well as the other 2.5 features.
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Sanghyeon Seo
Sent: Friday, October 27, 2006 5:25 AM
To: Discussion of IronPython
Subject: [IronPython] New-style exceptions in Python 2.5
Exceptions became new-style in Python 2.5. How will this be handled?
Given test.py below,
$ python2.4 test.py
$ python2.5 test.py
$ ipy test.py
$ ipy -X:Python25 test.py
et = type(error)
print et is types.ClassType
print et is types.TypeType
users mailing list
users at lists.ironpython.com
More information about the users