]> granicus.if.org Git - python/commitdiff
bpo-33499: PYTHONPYCACHEPREFIX What's New entry (GH-7749)
authorNick Coghlan <ncoghlan@gmail.com>
Wed, 20 Jun 2018 11:25:01 +0000 (21:25 +1000)
committerGitHub <noreply@github.com>
Wed, 20 Jun 2018 11:25:01 +0000 (21:25 +1000)
Initial What's New in Python 3.8 entry for `PYTHONPYCACHEPREFIX`.

Doc/whatsnew/3.8.rst

index 32c45ec7c322d212de3b7b90993fa1e2bbd900ac..542e84feaa6f5fb09fc41b07caa7dda959b3ff53 100644 (file)
@@ -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