This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 vstinner
收信人 Arfrever, ezio.melotti, lemburg, loewis, nadeem.vawda, vstinner
日期 2011-08-22.12:46:41
SpamBayes Score 5.8815486e-10
Marked as misclassified
Message-id <1314017202.27.0.799762313335.issue12795@psf.upfronthosting.co.za>
In-reply-to
内容
> sys.platform refers to build time information,
> so the platform module won't help.

When I wrote my patch, I realized that sys.platform is used to get the runtime information, which is wrong. See the tests in Lib/test/test_*.py: they use sys.platform to check features of the running OS (kernel). It is mostly to test FreeBSD major version, and it looks like Python is build on the same FreeBSD major version that it is running on. Maybe because on FreeBSD, most programs are compiled instead of using prebuild packages (pkgadd).
历史
日期 用户 动作 参数
2011-08-22 12:46:42vstinner修改recipients: + vstinner, lemburg, loewis, nadeem.vawda, ezio.melotti, Arfrever
2011-08-22 12:46:42vstinner修改messageid: <1314017202.27.0.799762313335.issue12795@psf.upfronthosting.co.za>
2011-08-22 12:46:41vstinner链接issue12795 messages
2011-08-22 12:46:41vstinner创建