Message411123
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. |
|
Date |
User |
Action |
Args |
2022-01-21 12:52:38 | xmorel | set | recipients:
+ xmorel |
2022-01-21 12:52:38 | xmorel | set | messageid: <1642769558.95.0.589223779906.issue46455@roundup.psfhosted.org> |
2022-01-21 12:52:38 | xmorel | link | issue46455 messages |
2022-01-21 12:52:38 | xmorel | create | |
|