Message200393
| 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. |
|