[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

Martin v. Löwis report at bugs.python.org
Thu Aug 18 19:48:03 CEST 2011


Martin v. Löwis <martin at v.loewis.de> added the comment:

> It means someone upgrading from 2.6 to 2.7 will see sys.platform change
> from "linux3" to "linux2". That breaks compatibility.

No, it doesn't. Code that works on 2.6 and Linux 3 will likely support
both linux2 and linux3, so it will continue just fine on 2.7.

I'd rather phrase this differently: Python 2.6 does not support Linux 3.
Tough luck, since Linux 3 was released long after Python 2.6.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12326>
_______________________________________


More information about the Python-bugs-list mailing list