summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-08-18 14:58:38 (GMT)
committerGitHub <noreply@github.com>2022-08-18 14:58:38 (GMT)
commitcfaa79aac088284c1eeacddc19ddebe06b55dcf7 (patch)
treef5f8fcdaa416fc3788cdb260984d96db7cc102b9 /Doc/c-api
parent157aef79b07e07bf115e49cdf5ff25e74c66354e (diff)
downloadcpython-cfaa79aac088284c1eeacddc19ddebe06b55dcf7.zip
cpython-cfaa79aac088284c1eeacddc19ddebe06b55dcf7.tar.gz
cpython-cfaa79aac088284c1eeacddc19ddebe06b55dcf7.tar.bz2
gh-93103: Doc uses PyConfig rather than deprecated vars (#96070)
The C API documentation now uses the new PyConfig API, rather than deprecated global configuration variables.
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/intro.rst2
-rw-r--r--Doc/c-api/sys.rst4
-rw-r--r--Doc/c-api/veryhigh.rst4
3 files changed, 5 insertions, 5 deletions
diff --git a/Doc/c-api/intro.rst b/Doc/c-api/intro.rst
index d9fcd0d..557ccfc 100644
--- a/Doc/c-api/intro.rst
+++ b/Doc/c-api/intro.rst
@@ -153,7 +153,7 @@ complete listing.
.. c:macro:: Py_GETENV(s)
Like ``getenv(s)``, but returns ``NULL`` if :option:`-E` was passed on the
- command line (i.e. if ``Py_IgnoreEnvironmentFlag`` is set).
+ command line (see :c:member:`PyConfig.use_environment`).
.. c:macro:: Py_MAX(x, y)
diff --git a/Doc/c-api/sys.rst b/Doc/c-api/sys.rst
index 32c2bc8..11d5e0e 100644
--- a/Doc/c-api/sys.rst
+++ b/Doc/c-api/sys.rst
@@ -167,7 +167,7 @@ Operating System Utilities
.. versionchanged:: 3.8
The function now uses the UTF-8 encoding on Windows if
- :c:data:`Py_LegacyWindowsFSEncodingFlag` is zero;
+ :c:member:`PyConfig.legacy_windows_fs_encoding` is zero;
.. c:function:: char* Py_EncodeLocale(const wchar_t *text, size_t *error_pos)
@@ -209,7 +209,7 @@ Operating System Utilities
.. versionchanged:: 3.8
The function now uses the UTF-8 encoding on Windows if
- :c:data:`Py_LegacyWindowsFSEncodingFlag` is zero.
+ :c:member:`PyConfig.legacy_windows_fs_encoding` is zero.
.. _systemfunctions:
diff --git a/Doc/c-api/veryhigh.rst b/Doc/c-api/veryhigh.rst
index 7bd47bb..b17818e 100644
--- a/Doc/c-api/veryhigh.rst
+++ b/Doc/c-api/veryhigh.rst
@@ -39,7 +39,7 @@ the same library that the Python runtime is using.
Note that if an otherwise unhandled :exc:`SystemExit` is raised, this
function will not return ``1``, but exit the process, as long as
- ``Py_InspectFlag`` is not set.
+ :c:member:`PyConfig.inspect` is zero.
.. c:function:: int Py_BytesMain(int argc, char **argv)
@@ -95,7 +95,7 @@ the same library that the Python runtime is using.
Note that if an otherwise unhandled :exc:`SystemExit` is raised, this
function will not return ``-1``, but exit the process, as long as
- ``Py_InspectFlag`` is not set.
+ :c:member:`PyConfig.inspect` is zero.
.. c:function:: int PyRun_SimpleFile(FILE *fp, const char *filename)