From: Nick Coghlan Date: Wed, 20 Jun 2018 11:25:01 +0000 (+1000) Subject: bpo-33499: PYTHONPYCACHEPREFIX What's New entry (GH-7749) X-Git-Tag: v3.8.0a1~1521 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16eb3bcdb22be4d82dc597b92b7154fcb11c6479;p=python bpo-33499: PYTHONPYCACHEPREFIX What's New entry (GH-7749) Initial What's New in Python 3.8 entry for `PYTHONPYCACHEPREFIX`. --- diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst index 32c45ec7c3..542e84feaa 100644 --- a/Doc/whatsnew/3.8.rst +++ b/Doc/whatsnew/3.8.rst @@ -67,6 +67,20 @@ Summary -- Release highlights New Features ============ +Parallel filesystem cache for compiled bytecode files +----------------------------------------------------- + +The new :envvar:`PYTHONPYCACHEPREFIX` setting (also available as +:option:`-X` ``pycache_prefix``) configures the implicit bytecode +cache to use a separate parallel filesystem tree, rather than +the default ``__pycache__`` subdirectories within each source +directory. + +The location of the cache is reported in :data:`sys.pycache_prefix` +(:const:`None` indicates the default location in ``__pycache__`` +subdirectories). + +(Contributed by Carl Meyer in :issue:`33499`.) Other Language Changes