Author pitrou
Recipients Arfrever, amaury.forgeotdarc, ezio.melotti, haypo, jwilk, lemburg, loewis, merwok, neologix, petri.lehtinen, pitrou, rosslagerwall
Date 2011-06-22.10:37:09
SpamBayes Score 2.65123e-06
Marked as misclassified No
Message-id <20110622123708.126cef04@msiwind>
In-reply-to <1308601045.06.0.160297551643.issue12326@psf.upfronthosting.co.za>
Content
> So people who say sys.platform shouldn't be used: what do you propose to
> do with Lib/plat-linux2 (or, more generally, Lib/plat-*)?

These directories look useless to me.
(IIRC, putting an obvious syntax error there does not trigger any failure
in the regression suite, showing that they are never imported)

That's orthogonal to whether sys.platform should be used or not, however.
During the language summit, someone (Marc-André) brought an interesting
point: the platform does external calls to system commands such as "uname",
which can be time-consuming.

We should at least document an example of using sys.platform.startswith()
rather than exact comparison.

Regards

Antoine.
History
Date User Action Args
2011-06-22 10:37:10pitrousetrecipients: + pitrou, lemburg, loewis, amaury.forgeotdarc, haypo, jwilk, ezio.melotti, merwok, Arfrever, neologix, rosslagerwall, petri.lehtinen
2011-06-22 10:37:09pitroulinkissue12326 messages
2011-06-22 10:37:09pitroucreate