From 2da0fceba7dd70334aacbab0708a8cbdff92e31d Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Mon, 7 Jan 2008 17:09:35 +0000 Subject: Patch #602345 by Neal Norwitz and me: add -B option and PYTHONDONTWRITEBYTECODE envvar to skip writing bytecode. --- Doc/using/cmdline.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Doc/using') diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst index 5f6bda51c4..b113c8f448 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 -- cgit v1.2.1