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.

Author neologix
Recipients neologix, pitrou, vstinner
Date 2011-06-13.14:51:11
SpamBayes Score 2.62623e-13
Marked as misclassified No
Message-id <>
> I would expect changing sys.platform will also break a lot of third-
> party code.

Maybe, but this would be an application bug.

Here's sys.platform current implementation:

const char *
    return PLATFORM;

And here's the documentation, from

Return the platform identifier for the current platform. On Unix, this is formed from the “official” name of the operating system, converted to lower case, followed by the major revision number"""

So it's actually documented.

> Perhaps sys.platform can still be 'linux2' under Linux 3.x? After
> all, there's no significant change that deserves changing
> sys.platform.

Sounds like a recipe for confusion.
Date User Action Args
2011-06-13 14:51:13neologixsetrecipients: + neologix, pitrou, vstinner
2011-06-13 14:51:12neologixsetmessageid: <>
2011-06-13 14:51:12neologixlinkissue12326 messages
2011-06-13 14:51:11neologixcreate