Skip to content

Deprecate / remove os.name=java #90613

Open

Description

@masklinn
mannequin
BPO 46455
Nosy @masklinn

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2022-01-21.12:52:38.939>
labels = ['library', '3.11']
title = 'Deprecate / remove os.name=java'
updated_at = <Date 2022-01-21.19:00:41.594>
user = 'https://github.com/masklinn'

bugs.python.org fields:

activity = <Date 2022-01-21.19:00:41.594>
actor = 'eric.araujo'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2022-01-21.12:52:38.939>
creator = 'xmorel'
dependencies = []
files = []
hgrepos = []
issue_num = 46455
keywords = []
message_count = 2.0
messages = ['411123', '411125']
nosy_count = 1.0
nosy_names = ['xmorel']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = None
url = 'https://bugs.python.org/issue46455'
versions = ['Python 3.11']

Activity

  1. masklinn commented on Jan 21, 2022

    masklinnmannequin
    MannequinAuthor

    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.

  2. added
    3.11only security fixes
    stdlibStandard Library Python modules in the Lib/ directory
    on Jan 21, 2022
  3. masklinn commented on Jan 21, 2022

    masklinnmannequin
    MannequinAuthor

    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.

  4. transferred this issue fromon Apr 10, 2022
  5. StanFromIreland commented on May 3, 2025

    @StanFromIreland
  6. sobolevn commented on May 3, 2025

    @sobolevn
  7. added
    type-featureA feature request or enhancement
    and removed
    3.11only security fixes
    on Jun 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions