[Python-Dev] __file__ and bytecode-only

Barry Warsaw barry at python.org
Fri Mar 12 20:53:12 CET 2010

On Mar 04, 2010, at 11:34 PM, Nick Coghlan wrote:

>The remaining open question to my mind is whether or not there should be
>a -X option to control the bytecode generation. E.g.:
>-Xcache_bytecode=no (don't write bytecode files at all)

-B and $PYTHONDONTWRITEBYTECODE will still be supported and serve this use

>-Xcache_bytecode=file (write a classic "foo.pyc" file)
>-Xcache_bytecode=dir (write to the "__pycache__" directory)
>With cache_bytecode=dir being the default for future releases.

I believe we've decided /not/ to support creation of bytecode-only
distributions out of the box.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-dev/attachments/20100312/837d9b43/attachment.pgp>

More information about the Python-Dev mailing list