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 xmorel
Recipients xmorel
Date 2022-01-21.12:52:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642769558.95.0.589223779906.issue46455@roundup.psfhosted.org>
In-reply-to
Content
os.name is defined as:

> The following names have currently been registered: 'posix', 'nt', 'java'.

In my understanding, the value `'java'` is for the benefit of jython, which is rather poorly. Other third-party implementations which may or may not have a "full os module" (e.g. ironpython) do not -- as far as I can tell -- get to be registered against this value, and Python 3.3's addition of `sys.implementation` seems like a more reliable (and better supported) way to perform implementation-specific checks.

Therefore I feel `os.name == 'java'` only exists to confuse readers of the documentation, but doesn't really provide any value, and should be removed.
History
Date User Action Args
2022-01-21 12:52:38xmorelsetrecipients: + xmorel
2022-01-21 12:52:38xmorelsetmessageid: <1642769558.95.0.589223779906.issue46455@roundup.psfhosted.org>
2022-01-21 12:52:38xmorellinkissue46455 messages
2022-01-21 12:52:38xmorelcreate