消息 [138730]
> That's exactly my point.
> Code checking sys.platform against 'linux2' is already broken, there's
> no point in complicating the code further, or adding a new constant.
> If you want to check for a specific operating system, there's already
> platform.system().
I would agree with this. Perhaps the documentation for sys.platform could be changed to mention that platform.system() should maybe be used instead. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2011-06-20 15:22:25 | rosslagerwall | 修改 | recipients:
+ rosslagerwall, lemburg, loewis, amaury.forgeotdarc, pitrou, vstinner, jwilk, ezio.melotti, eric.araujo, Arfrever, neologix |
| 2011-06-20 15:22:25 | rosslagerwall | 修改 | messageid: <1308583345.84.0.39287057122.issue12326@psf.upfronthosting.co.za> |
| 2011-06-20 15:22:25 | rosslagerwall | 链接 | issue12326 messages |
| 2011-06-20 15:22:25 | rosslagerwall | 创建 | |
|