Message142358
If we change Python 2.7.3 and 3.2.2 to force sys.platform to linux2 (instead of linux3) and use "linux" in Python 3.3, we will have 3 differents values of sys.platform if Python is built on Linux 3:
- "linux3" on Python <= 2.7.2 or Python <= 3.2.1
- "linux2" on 2.7.3 <= Python or 3.2.2 <= Python < 3.3
- "linux" on Python >= 3.3
I don't see how it will help backward or forward compatibility... It's exactly as the current state (sys.platform == 'linux3' on all Python versions): applications have to use sys.platform.startswith() to work correctly on any Linux version.
Well, except maybe if you plan to write applications working only on Python >= 2.7.3? ... this version is not released yet. |
|
Date |
User |
Action |
Args |
2011-08-18 16:26:51 | vstinner | set | recipients:
+ vstinner, lemburg, loewis, barry, doko, amaury.forgeotdarc, gagern, foom, pitrou, jwilk, djc, ezio.melotti, eric.araujo, Arfrever, r.david.murray, dmalcolm, sandro.tosi, rosslagerwall, python-dev, petri.lehtinen, Ramchandra Apte |
2011-08-18 16:26:51 | vstinner | set | messageid: <1313684811.69.0.750186706718.issue12326@psf.upfronthosting.co.za> |
2011-08-18 16:26:51 | vstinner | link | issue12326 messages |
2011-08-18 16:26:50 | vstinner | create | |
|