This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author numerodix
Recipients eric.araujo, ezio.melotti, fredericaltorres, lemburg, numerodix
Date 2013-10-19.10:11:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1382177481.26.0.14185970236.issue8964@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-10-19 10:11:21numerodixsetrecipients: + numerodix, lemburg, ezio.melotti, eric.araujo, fredericaltorres
2013-10-19 10:11:21numerodixsetmessageid: <1382177481.26.0.14185970236.issue8964@psf.upfronthosting.co.za>
2013-10-19 10:11:21numerodixlinkissue8964 messages
2013-10-19 10:11:21numerodixcreate