[Python-checkins] r59978 - python/trunk/Doc/whatsnew/2.6.rst

andrew.kuchling python-checkins at python.org
Tue Jan 15 15:38:05 CET 2008


Author: andrew.kuchling
Date: Tue Jan 15 15:38:05 2008
New Revision: 59978

Modified:
   python/trunk/Doc/whatsnew/2.6.rst
Log:
Restore description of sys.dont_write_bytecode.

The duplication is intentional -- this paragraph is in a section
describing additions to the sys module, and there's a later section
that mentions the switch.  I think most people scan the what's-new and
don't read it in detail, so a bit of duplication is OK.



Modified: python/trunk/Doc/whatsnew/2.6.rst
==============================================================================
--- python/trunk/Doc/whatsnew/2.6.rst	(original)
+++ python/trunk/Doc/whatsnew/2.6.rst	Tue Jan 15 15:38:05 2008
@@ -1015,6 +1015,17 @@
 
   .. Patch 1534
 
+  Another new variable, :attr:`dont_write_bytecode`, controls whether Python
+  writes any :file:`.pyc` or :file:`.pyo` files on importing a module.
+  If this variable is true, the compiled files are not written.  The
+  variable is initially set on start-up by supplying the :option:`-B`
+  switch to the Python interpreter, or by setting the
+  :envvar:`PYTHONDONTWRITEBYTECODE` environment variable before
+  running the interpreter.  Python code can subsequently 
+  change the value of this variable to control whether bytecode files
+  are written or not.
+  (Contributed by Neal Norwitz and Georg Brandl.)
+
   Information about the command-line arguments supplied to the Python 
   interpreter are available as attributes of a ``sys.flags`` named 
   tuple.  For example, the :attr:`verbose` attribute is true if Python 


More information about the Python-checkins mailing list