Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 615368f

Browse files
committed
Document the -J and -X options for CPython. Note that unlike for py2k, we
don't need to document -U becuase it's gone in py3k.
1 parent c78b05a commit 615368f

2 files changed

Lines changed: 17 additions & 2 deletions

File tree

Doc/using/cmdline.rst

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,6 @@ Miscellaneous options
238238
See also :envvar:`PYTHONUNBUFFERED`.
239239

240240

241-
.. XXX should the -U option be documented?
242-
243241
.. cmdoption:: -v
244242

245243
Print a message each time a module is initialized, showing the place
@@ -315,6 +313,20 @@ Miscellaneous options
315313

316314
.. note:: The line numbers in error messages will be off by one.
317315

316+
Options you shouldn't use
317+
~~~~~~~~~~~~~~~~~~~~~~~~~
318+
319+
.. cmdoption:: -J
320+
321+
Reserved for use by Jython_.
322+
323+
.. _Jython: http://jython.org
324+
325+
.. cmdoption:: -X
326+
327+
Reserved for alternative implementations of Python to use for their own
328+
purposes.
329+
318330
.. _using-on-envvars:
319331

320332
Environment variables

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,9 @@ Build
701701
Documentation
702702
------------
703703

704+
- Updating `Using Python` documentation to include description of CPython's
705+
-J and -X options.
706+
704707
- Document that importing a module that has None in sys.modules triggers an
705708
ImportError.
706709

0 commit comments

Comments
 (0)