[IronPython] IronPython 1.0.1 Released!
sanxiyn at gmail.com
Wed Oct 11 09:30:28 CEST 2006
2006/10/11, Anthony Baxter <anthonybaxter at gmail.com>:
> Right now, there is no easy way (aside from parsing sys.version) to
> say "is this code running on CPython or IronPython." And, as I started
> this thread, the format of sys.version changed from 1.0 to 1.0.1.
Not true. Testing for sys.platform == 'cli' is easy and exact.
sys.version format change is unfortunate, but it was done to provide
*more* information. Hopefully special casing 1.0 only would be enough
and IronPython team would keep the format from 1.0.1 on.
> As far as sys.version_info claiming to be Python 2.4 - I can sort of
> understand that from a pragmatic point of view. But it leaves me with
> a bad feeling - it's all too similar to almost every http client
> identifying themselves as "Mozilla 4.0 (Actual Browser Name Here)".
Indeed. But far too many softwares test for sys.hexversion and
sys.version_info to change that. Maybe it's better to change
documentation to say that hexversion and version_info are intended to
represent "language specification", not "language implementation"?
More information about the Ironpython-users