Skip to content

Commit 583bafb

Browse files
committed
update docutils refs
1 parent 1248cea commit 583bafb

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

Doc/c-api/init.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ and options. By default, these flags are controlled by :ref:`command line
9494
options <using-on-interface-options>`.
9595

9696
When a flag is set by an option, the value of the flag is the number of times
97-
that the option was set. For example, ``-b`` sets :c:data:`Py_BytesWarningFlag`
98-
to 1 and ``-bb`` sets :c:data:`Py_BytesWarningFlag` to 2.
97+
that the option was set. For example, ``-b`` sets :c:attr:`PyConfig.bytes_warning`
98+
to 1 and ``-bb`` sets :c:attr:`PyConfig.bytes_warning` to 2.
9999

100100

101101
.. c:var:: int Py_InteractiveFlag

Doc/whatsnew/3.12.rst

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2150,24 +2150,24 @@ Deprecated
21502150

21512151
* Deprecate global configuration variable:
21522152

2153-
* :c:var:`Py_DebugFlag`: use :c:member:`PyConfig.parser_debug`
2154-
* :c:var:`Py_VerboseFlag`: use :c:member:`PyConfig.verbose`
2155-
* :c:var:`Py_QuietFlag`: use :c:member:`PyConfig.quiet`
2156-
* :c:var:`Py_InteractiveFlag`: use :c:member:`PyConfig.interactive`
2157-
* :c:var:`Py_InspectFlag`: use :c:member:`PyConfig.inspect`
2158-
* :c:var:`Py_OptimizeFlag`: use :c:member:`PyConfig.optimization_level`
2159-
* :c:var:`Py_NoSiteFlag`: use :c:member:`PyConfig.site_import`
2160-
* :c:var:`Py_BytesWarningFlag`: use :c:member:`PyConfig.bytes_warning`
2161-
* :c:var:`Py_FrozenFlag`: use :c:member:`PyConfig.pathconfig_warnings`
2162-
* :c:var:`Py_IgnoreEnvironmentFlag`: use :c:member:`PyConfig.use_environment`
2163-
* :c:var:`Py_DontWriteBytecodeFlag`: use :c:member:`PyConfig.write_bytecode`
2164-
* :c:var:`Py_NoUserSiteDirectory`: use :c:member:`PyConfig.user_site_directory`
2165-
* :c:var:`Py_UnbufferedStdioFlag`: use :c:member:`PyConfig.buffered_stdio`
2166-
* :c:var:`Py_HashRandomizationFlag`: use :c:member:`PyConfig.use_hash_seed`
2153+
* :c:var:`!Py_DebugFlag`: use :c:member:`PyConfig.parser_debug`
2154+
* :c:var:`!Py_VerboseFlag`: use :c:member:`PyConfig.verbose`
2155+
* :c:var:`!Py_QuietFlag`: use :c:member:`PyConfig.quiet`
2156+
* :c:var:`!Py_InteractiveFlag`: use :c:member:`PyConfig.interactive`
2157+
* :c:var:`!Py_InspectFlag`: use :c:member:`PyConfig.inspect`
2158+
* :c:var:`!Py_OptimizeFlag`: use :c:member:`PyConfig.optimization_level`
2159+
* :c:var:`!Py_NoSiteFlag`: use :c:member:`PyConfig.site_import`
2160+
* :c:var:`!Py_BytesWarningFlag`: use :c:member:`PyConfig.bytes_warning`
2161+
* :c:var:`!Py_FrozenFlag`: use :c:member:`PyConfig.pathconfig_warnings`
2162+
* :c:var:`!Py_IgnoreEnvironmentFlag`: use :c:member:`PyConfig.use_environment`
2163+
* :c:var:`!Py_DontWriteBytecodeFlag`: use :c:member:`PyConfig.write_bytecode`
2164+
* :c:var:`!Py_NoUserSiteDirectory`: use :c:member:`PyConfig.user_site_directory`
2165+
* :c:var:`!Py_UnbufferedStdioFlag`: use :c:member:`PyConfig.buffered_stdio`
2166+
* :c:var:`!Py_HashRandomizationFlag`: use :c:member:`PyConfig.use_hash_seed`
21672167
and :c:member:`PyConfig.hash_seed`
2168-
* :c:var:`Py_IsolatedFlag`: use :c:member:`PyConfig.isolated`
2169-
* :c:var:`Py_LegacyWindowsFSEncodingFlag`: use :c:member:`PyPreConfig.legacy_windows_fs_encoding`
2170-
* :c:var:`Py_LegacyWindowsStdioFlag`: use :c:member:`PyConfig.legacy_windows_stdio`
2168+
* :c:var:`!Py_IsolatedFlag`: use :c:member:`PyConfig.isolated`
2169+
* :c:var:`!Py_LegacyWindowsFSEncodingFlag`: use :c:member:`PyPreConfig.legacy_windows_fs_encoding`
2170+
* :c:var:`!Py_LegacyWindowsStdioFlag`: use :c:member:`PyConfig.legacy_windows_stdio`
21712171
* :c:var:`!Py_FileSystemDefaultEncoding`: use :c:member:`PyConfig.filesystem_encoding`
21722172
* :c:var:`!Py_HasFileSystemDefaultEncoding`: use :c:member:`PyConfig.filesystem_encoding`
21732173
* :c:var:`!Py_FileSystemDefaultEncodeErrors`: use :c:member:`PyConfig.filesystem_errors`

Doc/whatsnew/3.7.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2517,7 +2517,7 @@ number of other issues). Some known details affected:
25172517
over the default filters set by the interpreter
25182518

25192519
Due to changes in the way the default warnings filters are configured,
2520-
setting :c:data:`Py_BytesWarningFlag` to a value greater than one is no longer
2520+
setting :c:data:`!Py_BytesWarningFlag` to a value greater than one is no longer
25212521
sufficient to both emit :exc:`BytesWarning` messages and have them converted
25222522
to exceptions. Instead, the flag must be set (to cause the warnings to be
25232523
emitted in the first place), and an explicit ``error::BytesWarning``
@@ -2540,7 +2540,7 @@ Starting in 3.7.1, :c:func:`Py_Initialize` now consistently reads and respects
25402540
all of the same environment settings as :c:func:`Py_Main` (in earlier Python
25412541
versions, it respected an ill-defined subset of those environment variables,
25422542
while in Python 3.7.0 it didn't read any of them due to :issue:`34247`). If
2543-
this behavior is unwanted, set :c:data:`Py_IgnoreEnvironmentFlag` to 1 before
2543+
this behavior is unwanted, set :c:data:`!Py_IgnoreEnvironmentFlag` to 1 before
25442544
calling :c:func:`Py_Initialize`.
25452545

25462546
In 3.7.1 the C API for Context Variables

Misc/NEWS.d/3.12.0a1.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6089,7 +6089,7 @@ Patch by Serge Guelton.
60896089
.. section: C API
60906090
60916091
Deprecate global configuration variables, like
6092-
:c:var:`Py_IgnoreEnvironmentFlag`, in the documentation: the
6092+
:c:var:`!Py_IgnoreEnvironmentFlag`, in the documentation: the
60936093
:c:func:`Py_InitializeFromConfig` API should be instead. Patch by Victor
60946094
Stinner.
60956095

@@ -6101,7 +6101,7 @@ Stinner.
61016101
.. section: C API
61026102
61036103
Deprecate global configuration variable like
6104-
:c:var:`Py_IgnoreEnvironmentFlag`: the :c:func:`Py_InitializeFromConfig` API
6104+
:c:var:`!Py_IgnoreEnvironmentFlag`: the :c:func:`Py_InitializeFromConfig` API
61056105
should be instead. Patch by Victor Stinner.
61066106

61076107
..

0 commit comments

Comments
 (0)