summaryrefslogtreecommitdiffstats
path: root/Doc/using
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-01-07 17:09:35 (GMT)
committerGeorg Brandl <georg@python.org>2008-01-07 17:09:35 (GMT)
commit2da0fceba7dd70334aacbab0708a8cbdff92e31d (patch)
treef93838b60f3c3216db03eaa24b32f4dc92389230 /Doc/using
parentb3255ed8c937510076b641db28ab052ddaee1178 (diff)
downloadcpython-2da0fceba7dd70334aacbab0708a8cbdff92e31d.zip
cpython-2da0fceba7dd70334aacbab0708a8cbdff92e31d.tar.gz
cpython-2da0fceba7dd70334aacbab0708a8cbdff92e31d.tar.bz2
Patch #602345 by Neal Norwitz and me: add -B option and PYTHONDONTWRITEBYTECODE envvar to skip writing bytecode.
Diffstat (limited to 'Doc/using')
-rw-r--r--Doc/using/cmdline.rst15
1 files changed, 15 insertions, 0 deletions
diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst
index 5f6bda5..b113c8f 100644
--- a/Doc/using/cmdline.rst
+++ b/Doc/using/cmdline.rst
@@ -145,6 +145,14 @@ Generic options
Miscellaneous options
~~~~~~~~~~~~~~~~~~~~~
+.. cmdoption:: -B
+
+ If given, Python won't try to write ``.pyc`` or ``.pyo`` files on the
+ import of source modules. See also :envvar:`PYTHONDONTWRITEBYTECODE`.
+
+ .. versionadded:: 2.6
+
+
.. cmdoption:: -d
Turn on parser debugging output (for wizards only, depending on compilation
@@ -411,3 +419,10 @@ Environment variables
If this is set, Python ignores case in :keyword:`import` statements. This
only works on Windows.
+
+.. envvar:: PYTHONDONTWRITEBYTECODE
+
+ If given, Python won't try to write ``.pyc`` or ``.pyo`` files on the
+ import of source modules.
+
+ .. versionadded:: 2.6