[issue8964] platform._sys_version does not parse correctly IronPython 2.x version
Martin Matusiak
report at bugs.python.org
Sat Oct 19 12:11:21 CEST 2013
Martin Matusiak added the comment:
Attaching a v3 which uses "in" and "startswith".
Just for good measure I ran this module on IronPython 1.0 and it fails on import:
- bytes literal: b'(__libc_init)'
- "if" as infix operator: line 177
- "unexpected token open": use of "with" context manager on line 334
- "as" keyword: except OSError as why: line 430
- ImportError: No module named os. os and subprocess are missing altogether in IronPython 1.0.
That's as far as I looked - there may be other issues still.
So I decided to isolate this one function and see if it works. It fails because re.ASCII does not exist. If I remove that then the function runs and parses its own sys.version correctly.
But it may be a bit of a stretch at this point to stay compatible that far back.
----------
Added file: http://bugs.python.org/file32221/issue8964_v3.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8964>
_______________________________________
More information about the Python-bugs-list
mailing list