[Python-Dev] Recommended way to tell platform (original) (raw)

"Martin v. Löwis" martin at v.loewis.de
Sun Aug 8 09:22:32 CEST 2004


Tim Peters wrote:

I dislike using os.name == 'nt', mostly because if we asked all Windows Python users which OS they use, only a tiny percentage would answer "NT".

A similar point holds for Linux, btw. os.name is "posix"; I doubt many Linux (or, Solaris) users would say that the name of their OS is "posix". It has the advantage over "nt" that "posix" is not dying.

Regards, Martin



More information about the Python-Dev mailing list