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.

classification
Title: Deprecate / remove os.name=java
Type: Stage:
Components: Library (Lib) Versions: Python 3.11
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: xmorel
Priority: normal Keywords:

Created on 2022-01-21 12:52 by xmorel, last changed 2022-04-11 14:59 by admin.

Messages (2)
msg411123 - (view) Author: Xavier Morel (xmorel) * Date: 2022-01-21 12:52
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.
msg411125 - (view) Author: Xavier Morel (xmorel) * Date: 2022-01-21 13:05
PS: "platform.system()" also documents `Java` as a value which doesn't seem to make that much sense, however it's an open set so probably less of an issue / source of confusion.
History
Date User Action Args
2022-04-11 14:59:55adminsetgithub: 90613
2022-01-21 19:00:41eric.araujosetversions: - Python 3.7, Python 3.8, Python 3.9, Python 3.10
2022-01-21 13:05:12xmorelsetmessages: + msg411125
2022-01-21 12:52:38xmorelcreate