[Python-checkins] gh-92913: Fix typos in documentation (GH-93129)

zooba webhook-mailer at python.org
Mon May 23 12:39:17 EDT 2022


https://github.com/python/cpython/commit/6a6f823ea7f565722148462a0372aa90085637bc
commit: 6a6f823ea7f565722148462a0372aa90085637bc
branch: main
author: Steve Dower <steve.dower at python.org>
committer: zooba <steve.dower at microsoft.com>
date: 2022-05-23T17:39:10+01:00
summary:

gh-92913: Fix typos in documentation (GH-93129)

files:
M Doc/c-api/init_config.rst

diff --git a/Doc/c-api/init_config.rst b/Doc/c-api/init_config.rst
index b1e9800352fee..34883c9f349f5 100644
--- a/Doc/c-api/init_config.rst
+++ b/Doc/c-api/init_config.rst
@@ -1322,9 +1322,9 @@ initialization::
         }
 
         /* Specify sys.path explicitly */
-        /* To calculate the default and then modify, finish initialization and
-           then use PySys_GetObject("path") to get the list. */
-        condig.module_search_paths_set = 1
+        /* If you want to modify the default set of paths, finish
+           initialization first and then use PySys_GetObject("path") */
+        config.module_search_paths_set = 1;
         status = PyWideStringList_Append(&config.module_search_paths,
                                          L"/path/to/stdlib");
         if (PyStatus_Exception(status)) {



More information about the Python-checkins mailing list