Message142450
Antoine Pitrou wrote:
>
> Antoine Pitrou <pitrou@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.
Good idea.
We could simply write `uname -s -r -m` into the new attribute:
sys.build_platform = ('Linux', '2.6.34.8-0.2-desktop', 'x86_64')
and then have
sys.platform = 'linux'
for quick general platform checks. |
|
Date |
User |
Action |
Args |
2011-08-19 13:35:28 | lemburg | set | recipients:
+ lemburg, loewis, barry, doko, amaury.forgeotdarc, gagern, foom, pitrou, vstinner, jwilk, djc, ezio.melotti, eric.araujo, Arfrever, r.david.murray, dmalcolm, sandro.tosi, rosslagerwall, python-dev, petri.lehtinen, Ramchandra Apte |
2011-08-19 13:35:27 | lemburg | link | issue12326 messages |
2011-08-19 13:35:27 | lemburg | create | |
|