[Python-checkins] cpython (2.7): Move doc of sys.dont_write_bytecode to make all attributes sorted again
eric.araujo
python-checkins at python.org
Thu Oct 6 13:19:43 CEST 2011
http://hg.python.org/cpython/rev/8ef2436b14ec
changeset: 72722:8ef2436b14ec
branch: 2.7
parent: 72660:504981afa007
user: Éric Araujo <merwok at netwok.org>
date: Wed Oct 05 02:25:58 2011 +0200
summary:
Move doc of sys.dont_write_bytecode to make all attributes sorted again
files:
Doc/library/sys.rst | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -95,6 +95,17 @@
customized by assigning another one-argument function to ``sys.displayhook``.
+.. data:: dont_write_bytecode
+
+ If this is true, Python won't try to write ``.pyc`` or ``.pyo`` files on the
+ import of source modules. This value is initially set to ``True`` or
+ ``False`` depending on the :option:`-B` command line option and the
+ :envvar:`PYTHONDONTWRITEBYTECODE` environment variable, but you can set it
+ yourself to control bytecode file generation.
+
+ .. versionadded:: 2.6
+
+
.. function:: excepthook(type, value, traceback)
This function prints out a given traceback and exception to ``sys.stderr``.
@@ -786,17 +797,6 @@
.. versionadded:: 2.6
-.. data:: dont_write_bytecode
-
- If this is true, Python won't try to write ``.pyc`` or ``.pyo`` files on the
- import of source modules. This value is initially set to ``True`` or ``False``
- depending on the ``-B`` command line option and the ``PYTHONDONTWRITEBYTECODE``
- environment variable, but you can set it yourself to control bytecode file
- generation.
-
- .. versionadded:: 2.6
-
-
.. function:: setcheckinterval(interval)
Set the interpreter's "check interval". This integer value determines how often
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list