[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'
Barry A. Warsaw
report at bugs.python.org
Tue Oct 4 16:24:54 CEST 2011
Barry A. Warsaw <barry at python.org> added the comment:
On Oct 04, 2011, at 01:03 PM, Boštjan Mejak wrote:
>I have a better idea... Why don't we change the "linux2" string into just
>"linux". That way we will never run into this kind of issue, even in the
>future when Linux kernel version 4 is going to exist. Any thoughts on this?
Python 3.3 already sets sys.platform to 'linux'. It can't be done for older
versions due to backward compatibility.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12326>
_______________________________________
More information about the Python-bugs-list
mailing list