From 16eb3bcdb22be4d82dc597b92b7154fcb11c6479 Mon Sep 17 00:00:00 2001 From: Nick Coghlan Date: Wed, 20 Jun 2018 21:25:01 +1000 Subject: bpo-33499: PYTHONPYCACHEPREFIX What's New entry (GH-7749) Initial What's New in Python 3.8 entry for `PYTHONPYCACHEPREFIX`. --- Doc/whatsnew/3.8.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst index 32c45ec..542e84f 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 -- cgit v0.12