[IronPython] New-style exceptions in Python 2.5
Sanghyeon Seo
sanxiyn at gmail.com
Fri Oct 27 14:25:23 CEST 2006
Exceptions became new-style in Python 2.5. How will this be handled?
Given test.py below,
$ python2.4 test.py
True
False
$ python2.5 test.py
False
True
While,
$ ipy test.py
True
False
$ ipy -X:Python25 test.py
True
False
# test.py
class error(Exception):
pass
import types
et = type(error)
print et is types.ClassType
print et is types.TypeType
--
Seo Sanghyeon
More information about the Ironpython-users
mailing list