[Python-Dev] Recommended way to tell platform

"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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant