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

Barry A. Warsaw report at bugs.python.org
Thu Aug 18 03:31:04 CEST 2011


Barry A. Warsaw <barry at python.org> added the comment:

On Aug 18, 2011, at 01:20 AM, James Y Knight wrote:

>James Y Knight <foom at users.sourceforge.net> added the comment:
>
>> I will backport the fix to 2.7 and 3.2.
>
>Uh, wait, so does that mean you're *not* going to do the
>compatibility-preserving thing and force sys.platform to stay linux2 even
>when python is built (BUILT! not run!) on a machine where the active kernel
>is linux 3.x?

My question too!  I would say that stable releases should probably not get
this change, but should force sys.platform to linux2 on 3.x kernels.

BTW, does anybody think sys.platform should use a more dynamic approach for
calculating its value?  Well, maybe not necessary if Python 3.3 will just say
'linux'.

----------

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


More information about the Python-bugs-list mailing list