FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Remove option "-J" from cmdline docs · Issue #133336 · python/cpython · GitHub

Repository navigation

Remove option "-J" from cmdline docs #133336

Closed

Description

Documentation

File Doc/using/cmdline.rst mentions Options you shouldn’t use:

Options you shouldn't use
~~~~~~~~~~~~~~~~~~~~~~~~~

.. option:: -J

   Reserved for use by Jython_.

.. _Jython: https://www.jython.org/

Option -J was added in Python 2.6. Since all Jython related things are being removed, I'd suggest to remove reference to this option from the docs as well.

Linked PRs

Activity

  1. sobolevn commented on May 3, 2025

    Member

    I support this idea.

  2. StanFromIreland commented on May 3, 2025

    Member

    Should we not deprecate it (similarly to this), it currently serves no purpose and 3.X is not supported by Jython? Jython3 seems to have halted (8 months of inactivity).

  3. vasily-v-ryabov commented on May 5, 2025

    Author

    Current message already looks like a deprecation for me:

    C:\Python3_14a7\python.exe -J
    -J is reserved for Jython
    usage: C:\Python3_14a7\python.exe [option] ... [-c cmd | -m mod | file | -] [arg] ...
    Try `python -h' for more information.

    Also both default message Unknown option: -J and current one are combined with the same exit code 2.

    @jeff5 do you have plans to use command line option -J for Jython3 ?

  4. StanFromIreland commented on May 5, 2025

    Member

    It does not seem to be deprecated currently, it is also not on the pending deprecation list. I think hard depreciation for 3.16 (too late for 3.15 now) would be good, it can always be added back.

  5. jeff5 commented on May 5, 2025

    Contributor

    -J is a pass-through for communicating arguments to the JVM. I think it would not matter in a hoped-for Jython 3 how that was done, if for some reason -J were recycled.

    For context, it is often used to provide sizing information when starting the JVM, to set options (Java properties) read by libraries, or to configure the debugging hook. Of necessity then, -J option values are stripped out and used by the wrapper script, which is what a jython command has to be, not by the implementation class that it launches.

    -X seems to be a standard way to provide implementation-specific configuration. The fly in the ointment is that CPython makes free with the whole namespace. I think implementations could share the -X namespace given a succinct and script-friendly convention.

    Ping: @Stewori

  6. added a commit that references this issue on May 5, 2025
  7. added a commit that references this issue on May 10, 2025
  8. added a commit that references this issue on May 10, 2025
  9. added a commit that references this issue on May 10, 2025
  10. added 2 commits that reference this issue on Jul 12, 2025
  11. added a commit that references this issue on Aug 4, 2025
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

    docsDocumentation in the Doc dir

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL