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

2011-08-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: I'm not sure I understand why platform.release() isn't sufficient for this purpose. Note that some systems return alphanumeric values for

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

2011-08-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Le 20/08/2011 21:25, Marc-Andre Lemburg a écrit : I'm not sure I understand why platform.release() isn't sufficient for this purpose. You cannot write platform.release() = (2, 28) (Linux = 2.28) or platform.release() = 7

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

2011-08-20 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: #12326 proposes to remove the major version from sys.platform. If we remove it, we will need another easy way to get this information. I don't think that we need the version used to build Python, but the version at runtime.

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

2011-08-20 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12794 ___

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

2011-08-20 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Can you please elaborate why we need it? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12794 ___

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

2011-08-20 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: New submission from STINNER Victor victor.stin...@haypocalc.com: #12326 proposes to remove the major version from sys.platform. If we remove it, we will need another easy way to get this information. I don't

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

2011-08-20 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- title: platform: add a major function to get the system major version - platform: add a major function to get the system major version ___ Python tracker

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

2011-08-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: That other ticket is #9878. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12794 ___

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

2011-08-20 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Can you please elaborate why we need it? platform.major() will be needed if we remove the major version for all platforms from sys.platform (issue #12795). See sys_platform_without_major.patch attached to issue #12795 see how it

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

2011-08-20 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I'm not sure I understand why platform.release() isn't sufficient for this purpose. Note that some systems return alphanumeric values for platform.release(), e.g. for Windows you get 'NT' or 'XP'. It's not easy to get 2 (int)

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

2011-08-20 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12794 ___