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

STINNER Victor report at bugs.python.org
Sat Aug 20 17:35:21 CEST 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

> I'm working on a patch to remove the major version of sys.platform

As expected by Marc-Andre: we need this information and so it has to be available somewhere else. I created #12794 to add platform.major(). I prefer to get the major version at runtime, not the major version used to build Python. I need the major version for Python tests: the tests checks features of the running system (kernel), not of the system used to build Python.

@Marc-Andre Lemburg: If you still think that we need all information about the system used to build Python, please open another issue (or comment maybe #12794).

----------

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


More information about the Python-bugs-list mailing list