Author neologix
Recipients haypo, neologix, pitrou
Date 2011-06-13.14:51:11
SpamBayes Score 2.62623e-13
Marked as misclassified No
Message-id <1307976672.69.0.300868758392.issue12326@psf.upfronthosting.co.za>
In-reply-to
Content
> 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 *
Py_GetPlatform(void)
{
    return PLATFORM;
}


And here's the documentation, from http://docs.python.org/c-api/init.html

"""
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.
History
Date User Action Args
2011-06-13 14:51:13neologixsetrecipients: + neologix, pitrou, haypo
2011-06-13 14:51:12neologixsetmessageid: <1307976672.69.0.300868758392.issue12326@psf.upfronthosting.co.za>
2011-06-13 14:51:12neologixlinkissue12326 messages
2011-06-13 14:51:11neologixcreate