New submission from Xavier Morel <xavier.mo...@masklinn.net>:

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.

----------
components: Library (Lib)
messages: 411123
nosy: xmorel
priority: normal
severity: normal
status: open
title: Deprecate / remove os.name=java
versions: Python 3.10, Python 3.11, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46455>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to