[issue12794] platform: add a function to get the system version as tuple

2011-08-22 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- title: platform: add a function to get the system version as tuple -> platform: add a function to get the system version as tuple ___ Python tracker _

[issue12794] platform: add a function to get the system version as tuple

2011-08-22 Thread STINNER Victor
STINNER Victor added the comment: > The whole purpose of autoconf/configure is > to try to figure out which features are available on a platform > and those features change with the OS version. Hum, not exactly. autoconf checks if a function exists or if a constant exists in the C headers and

[issue12794] platform: add a function to get the system version as tuple

2011-08-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: [This discussion is really off-topic for this issue, it should either be moved to issue12795 or a new ticket] Martin v. Löwis wrote: > > Martin v. Löwis added the comment: > >>> No, it doesn't (except for a bug that Matthias Klose pointed out). >>> The

[issue12794] platform: add a function to get the system version as tuple

2011-08-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: >> No, it doesn't (except for a bug that Matthias Klose pointed out). >> The OS kernel version should have *zero* impact on the resulting Python >> binary. What matters it the C compiler and the version of the C library. >> The C library may or may not have fea

[issue12794] platform: add a function to get the system version as tuple

2011-08-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Martin v. Löwis wrote: > > Martin v. Löwis added the comment: > >> Well, it is important to somehow get the build information for >> Python, since that tells us which OS features were available >> at the time of compilation. > > No, it doesn't (except fo

[issue12794] platform: add a function to get the system version as tuple

2011-08-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Well, it is important to somehow get the build information for > Python, since that tells us which OS features were available > at the time of compilation. No, it doesn't (except for a bug that Matthias Klose pointed out). The OS kernel version should have *

[issue12794] platform: add a function to get the system version as tuple

2011-08-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > >> What we could do is add a function that tries to find out the >> true version number of the OS, e.g. for Windows 7 that would >> be (6, 1, 7601) instead of the marketing name '7' returned by >> platform.release(). > > Yes, it wou