Antoine Pitrou <pit...@free.fr> added the comment: Le Mon, 27 Jun 2011 08:05:05 +0000, Martin v. Löwis <rep...@bugs.python.org> a écrit : > > What I'm advocating is to special-case Linux (and any other system > where major version numbers don't mean much).
Actually, it would itself break compatibility, because sys.platform would jump from "linux2" to "linux" from one Python release to another. It would therefore only be applicable, at best, to 3.3. I think we should at least document the idiom of using "sys.platform.startswith(...)", and mention the platform module as an alternative. This can be done in all doc versions without breaking anything, and in time for Linux 3 :) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12326> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com