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

Antoine Pitrou report at bugs.python.org
Fri Aug 19 15:24:36 CEST 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

> Please reread the quoted sentence:
> 
> The *compile time* version information needs to be preserved.

Then please give it a very explicit name, such as "sys.build_platform"
or "sys.compile_time_version_info". We don't want people to be misled by
yet another platform identification attribute.

----------

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


More information about the Python-bugs-list mailing list