[Python-checkins] r77993 - in python/branches/release26-maint: Doc/using/cmdline.rst Misc/NEWS

barry.warsaw python-checkins at python.org
Fri Feb 5 19:52:05 CET 2010


Author: barry.warsaw
Date: Fri Feb 5 19:52:05 2010
New Revision: 77993
Log:
Merged revisions 77992 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/trunk
........
 r77992 | barry.warsaw | 2010年02月05日 13:45:25 -0500 (2010年2月05日) | 4 lines
 
 Resolve bug 7847 by including documentation for -J, -U, and -X under "Options
 you shouldn't use".
........
Modified:
 python/branches/release26-maint/ (props changed)
 python/branches/release26-maint/Doc/using/cmdline.rst
 python/branches/release26-maint/Misc/NEWS
Modified: python/branches/release26-maint/Doc/using/cmdline.rst
==============================================================================
--- python/branches/release26-maint/Doc/using/cmdline.rst	(original)
+++ python/branches/release26-maint/Doc/using/cmdline.rst	Fri Feb 5 19:52:05 2010
@@ -276,8 +276,6 @@
 See also :envvar:`PYTHONUNBUFFERED`.
 
 
-.. XXX should the -U option be documented?
-
 .. cmdoption:: -v
 
 Print a message each time a module is initialized, showing the place
@@ -353,9 +351,6 @@
 
 .. note:: The line numbers in error messages will be off by one.
 
-.. XXX document -X?
-
-
 .. cmdoption:: -3
 
 Warn about Python 3.x incompatibilities which cannot be fixed trivially by
@@ -373,7 +368,30 @@
 
 .. versionadded:: 2.6
 
+Options you shouldn't use
+~~~~~~~~~~~~~~~~~~~~~~~~~
+
+.. cmdoption:: -J
+
+ Reserved for use by Jython_.
+
+.. _Jython: http://jython.org
+
+.. cmdoption:: -U
+
+ Turns all string literals into unicodes globally. Do not be tempted to use
+ this option as it will probably break your world. It also produces
+ ``.pyc`` files with a different magic number than normal. Instead, you can
+ enable unicode literals on a per-module basis by using::
+
+ from __future__ import unicode_literals
+
+ at the top of the file. See :mod:`__future__` for details.
+
+.. cmdoption:: -X
 
+ Reserved for alternative implementations of Python to use for their own
+ purposes.
 
 .. _using-on-envvars:
 
Modified: python/branches/release26-maint/Misc/NEWS
==============================================================================
--- python/branches/release26-maint/Misc/NEWS	(original)
+++ python/branches/release26-maint/Misc/NEWS	Fri Feb 5 19:52:05 2010
@@ -34,7 +34,8 @@
 used to drop the time part of the result.
 
 - Issue #6108: unicode(exception) and str(exception) should return the same
- message when only __str__ (and not __unicode__) is overridden in the subclass.
+ message when only __str__ (and not __unicode__) is overridden in the
+ subclass.
 
 - Issue #7491: Metaclass's __cmp__ method was ignored.
 
@@ -134,8 +135,8 @@
 - Issue #1923: Fixed the removal of meaningful spaces when PKG-INFO is 
 generated in Distutils. Patch by Stephen Emslie.
 
-- Issue #4120: Drop reference to CRT from manifest when building extensions with
- msvc9compiler.
+- Issue #4120: Drop reference to CRT from manifest when building extensions
+ with msvc9compiler.
 
 - Issue #7410: deepcopy of itertools.count() erroneously reset the count.
 
@@ -222,12 +223,15 @@
 binary distribution on OSX 10.6 even when the user does not
 have the 10.4u SDK installed.
 
-- Issue #7541: when using ``python-config`` with a framework install the compiler might
- use the wrong library.
+- Issue #7541: when using ``python-config`` with a framework install the
+ compiler might use the wrong library.
 
 Documentation
 -------------
 
+- Updating `Using Python` documentation to include description of CPython's
+ -J, -U and -X options.
+
 - Update python manual page (options -B, -O0, -s, environment variables
 PYTHONDONTWRITEBYTECODE, PYTHONNOUSERSITE).
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /