Message139248
Le Mon, 27 Jun 2011 08:05:05 +0000,
Martin v. Löwis <report@bugs.python.org> a écrit :
>
> What I'm advocating is to special-case Linux (and any other system
> where major version numbers don't mean much).
Actually, it would itself break compatibility, because sys.platform would
jump from "linux2" to "linux" from one Python release to another. It would
therefore only be applicable, at best, to 3.3.
I think we should at least document the idiom of using
"sys.platform.startswith(...)", and mention the platform module as an
alternative. This can be done in all doc versions without breaking
anything, and in time for Linux 3 :) |
|
Date |
User |
Action |
Args |
2011-06-27 08:39:52 | pitrou | set | recipients:
+ pitrou, lemburg, loewis, amaury.forgeotdarc, vstinner, jwilk, ezio.melotti, eric.araujo, Arfrever, r.david.murray, neologix, rosslagerwall, petri.lehtinen |
2011-06-27 08:39:51 | pitrou | link | issue12326 messages |
2011-06-27 08:39:51 | pitrou | create | |
|