summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.11.rst
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2022-05-19 19:23:53 (GMT)
committerGitHub <noreply@github.com>2022-05-19 19:23:53 (GMT)
commit403d16fa28764718dcd0536ccb3ab8d05768465d (patch)
treee1c8a70393a144f722945cf91e65a00b8cf7cc95 /Doc/whatsnew/3.11.rst
parent3fd86100022103f41ada043f5bb5a7201e80ac27 (diff)
downloadcpython-403d16fa28764718dcd0536ccb3ab8d05768465d.zip
cpython-403d16fa28764718dcd0536ccb3ab8d05768465d.tar.gz
cpython-403d16fa28764718dcd0536ccb3ab8d05768465d.tar.bz2
gh-92913: Clarify changes to PyInitConfig.module_search_paths[_set] fields (GH-92980)
Diffstat (limited to 'Doc/whatsnew/3.11.rst')
-rw-r--r--Doc/whatsnew/3.11.rst15
1 files changed, 15 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index 1fd5b35..1f88d25 100644
--- a/Doc/whatsnew/3.11.rst
+++ b/Doc/whatsnew/3.11.rst
@@ -403,6 +403,11 @@ Other CPython Implementation Changes
instead of prepending them.
(Contributed by Bastian Neuburger in :issue:`44934`.)
+* The :c:member:`PyConfig.module_search_paths_set` field must now be set to 1 for
+ initialization to use :c:member:`PyConfig.module_search_paths` to initialize
+ :data:`sys.path`. Otherwise, initialization will recalculate the path and replace
+ any values added to ``module_search_paths``.
+
New Modules
===========
@@ -1861,6 +1866,16 @@ Porting to Python 3.11
* Distributors are encouraged to build Python with the optimized Blake2
library `libb2`_.
+* The :c:member:`PyConfig.module_search_paths_set` field must now be set to 1 for
+ initialization to use :c:member:`PyConfig.module_search_paths` to initialize
+ :data:`sys.path`. Otherwise, initialization will recalculate the path and replace
+ any values added to ``module_search_paths``.
+
+* :c:func:`PyConfig_Read` no longer calculates the initial search path, and will not
+ fill any values into :c:member:`PyConfig.module_search_paths`. To calculate default
+ paths and then modify them, finish initialization and use :c:func:`PySys_GetObject`
+ to retrieve :data:`sys.path` as a Python list object and modify it directly.
+
Deprecated
----------