From 7e07f2669f613ed6c48c20d9a32559bafaeac0f3 Mon Sep 17 00:00:00 2001 From: Nick Coghlan Date: Sat, 16 Jun 2018 15:12:04 +1000 Subject: [PATCH 1/4] bpo-33499: PYTHONPYCACHEPREFIX What's New entry 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 10fa182faeb3bf..7d2c92fd20f767 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 :env:`PYTHONPYCACHEPREFIX` setting (also available as +:opt:`-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 From bbb6bb63a551d6d3502154dfde7162da74914da1 Mon Sep 17 00:00:00 2001 From: Nick Coghlan Date: Sat, 16 Jun 2018 18:02:54 +1000 Subject: [PATCH 2/4] Fix Sphinx role name --- Doc/whatsnew/3.8.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst index 7d2c92fd20f767..74c27962c9b174 100644 --- a/Doc/whatsnew/3.8.rst +++ b/Doc/whatsnew/3.8.rst @@ -70,7 +70,7 @@ New Features Parallel filesystem cache for compiled bytecode files ----------------------------------------------------- -The new :env:`PYTHONPYCACHEPREFIX` setting (also available as +The new :envvar:`PYTHONPYCACHEPREFIX` setting (also available as :opt:`-X ``pycache_prefix``) configures the implicit bytecode cache to use a separate parallel filesystem tree, rather than the default ``__pycache__`` subdirectories within each source From e72d1abc05e7266c0320a09d9868cd080613ec46 Mon Sep 17 00:00:00 2001 From: Nick Coghlan Date: Sat, 16 Jun 2018 18:08:50 +1000 Subject: [PATCH 3/4] Use correct option role --- Doc/whatsnew/3.8.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst index 74c27962c9b174..94762ecd81a4b0 100644 --- a/Doc/whatsnew/3.8.rst +++ b/Doc/whatsnew/3.8.rst @@ -71,7 +71,7 @@ Parallel filesystem cache for compiled bytecode files ----------------------------------------------------- The new :envvar:`PYTHONPYCACHEPREFIX` setting (also available as -:opt:`-X ``pycache_prefix``) configures the implicit bytecode +: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. From 5e46698f55767b9e242b310115f8e26410d7b3a7 Mon Sep 17 00:00:00 2001 From: Nick Coghlan Date: Wed, 20 Jun 2018 20:51:58 +1000 Subject: [PATCH 4/4] Add missing backtick --- Doc/whatsnew/3.8.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst index 94762ecd81a4b0..b0cb0957039610 100644 --- a/Doc/whatsnew/3.8.rst +++ b/Doc/whatsnew/3.8.rst @@ -71,7 +71,7 @@ Parallel filesystem cache for compiled bytecode files ----------------------------------------------------- The new :envvar:`PYTHONPYCACHEPREFIX` setting (also available as -:option:`-X ``pycache_prefix``) configures the implicit bytecode +: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.