mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
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.
This commit is contained in:
parent
157aef79b0
commit
cfaa79aac0
4 changed files with 10 additions and 12 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue