Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite096465

Browse files
authored
[3.11]gh-101100: Fix Sphinx warnings inwhatsnew/3.11.rst and related (GH-114531) (#114650)
1 parent2179948 commite096465

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

‎Doc/whatsnew/3.11.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ enum
672672

673673
* Changed:meth:`Enum.__format__() <enum.Enum.__format__>` (the default for
674674
:func:`format`,:meth:`str.format` and:term:`f-string`\s) to always produce
675-
the same result as:meth:`Enum.__str__()`: for enums inheriting from
675+
the same result as:meth:`Enum.__str__() <enum.Enum.__str__>`: for enums inheriting from
676676
:class:`~enum.ReprEnum` it will be the member's value; for all other enums
677677
it will be the enum and member name (e.g. ``Color.RED``).
678678

@@ -2465,7 +2465,7 @@ Porting to Python 3.11
24652465

24662466
Debuggers that accessed the:attr:`~frame.f_locals` directly *must* call
24672467
:c:func:`PyFrame_GetLocals` instead. They no longer need to call
2468-
:c:func:`PyFrame_FastToLocalsWithError` or:c:func:`PyFrame_LocalsToFast`,
2468+
:c:func:`!PyFrame_FastToLocalsWithError` or:c:func:`!PyFrame_LocalsToFast`,
24692469
in fact they should not call those functions. The necessary updating of the
24702470
frame is now managed by the virtual machine.
24712471

@@ -2604,8 +2604,8 @@ and will be removed in Python 3.12.
26042604
*:c:func:`!PyUnicode_GET_DATA_SIZE`
26052605
*:c:func:`!PyUnicode_GET_SIZE`
26062606
*:c:func:`!PyUnicode_GetSize`
2607-
*:c:func:`PyUnicode_IS_COMPACT`
2608-
*:c:func:`PyUnicode_IS_READY`
2607+
*:c:func:`!PyUnicode_IS_COMPACT`
2608+
*:c:func:`!PyUnicode_IS_READY`
26092609
*:c:func:`PyUnicode_READY`
26102610
*:c:func:`!PyUnicode_WSTR_LENGTH`
26112611
*:c:func:`!_PyUnicode_AsUnicode`
@@ -2660,7 +2660,7 @@ Removed
26602660
(Contributed by Victor Stinner in:issue:`45474`.)
26612661

26622662
* Exclude:c:func:`PyWeakref_GET_OBJECT` from the limited C API. It never
2663-
worked since the:c:type:`PyWeakReference` structure is opaque in the
2663+
worked since the:c:type:`!PyWeakReference` structure is opaque in the
26642664
limited C API.
26652665
(Contributed by Victor Stinner in:issue:`35134`.)
26662666

‎Misc/NEWS.d/3.11.0a2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ context objects can now be disabled.
11891189
.. section: C API
11901190
11911191
Exclude:c:func:`PyWeakref_GET_OBJECT` from the limited C API. It never
1192-
worked since the:c:type:`PyWeakReference` structure is opaque in the
1192+
worked since the:c:type:`!PyWeakReference` structure is opaque in the
11931193
limited C API.
11941194

11951195
..

‎Misc/NEWS.d/3.11.0a4.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ faster due to reference-counting optimizations. Patch by Dennis Sweeney.
170170
.. nonce: IKx4v6
171171
.. section: Core and Builtins
172172
173-
Remove:opcode:`POP_EXCEPT_AND_RERAISE` and replace it by an equivalent
173+
Remove:opcode:`!POP_EXCEPT_AND_RERAISE` and replace it by an equivalent
174174
sequence of other opcodes.
175175

176176
..
@@ -1171,7 +1171,7 @@ Replaced deprecated usage of :c:func:`PyImport_ImportModuleNoBlock` with
11711171
.. nonce: sMgDLz
11721172
.. section: C API
11731173
1174-
The:c:func:`PyUnicode_CHECK_INTERNED` macro has been excluded from the
1174+
The:c:func:`!PyUnicode_CHECK_INTERNED` macro has been excluded from the
11751175
limited C API. It was never usable there, because it used internal
11761176
structures which are not available in the limited C API. Patch by Victor
11771177
Stinner.

‎Misc/NEWS.d/3.11.0a7.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Replaced :opcode:`JUMP_ABSOLUTE` by the relative jump
138138
.. nonce: SwrrFO
139139
.. section: Core and Builtins
140140
141-
:c:func:`PyFrame_FastToLocalsWithError` and:c:func:`PyFrame_LocalsToFast`
141+
:c:func:`!PyFrame_FastToLocalsWithError` and:c:func:`!PyFrame_LocalsToFast`
142142
are no longer called during profiling nor tracing. C code can access the
143143
``f_locals`` attribute of:c:type:`PyFrameObject` by calling
144144
:c:func:`PyFrame_GetLocals`.

‎Misc/NEWS.d/3.8.0a1.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3395,8 +3395,8 @@ Zackery Spytz.
33953395
.. nonce: S0Irst
33963396
.. section: Library
33973397
3398-
Fix parsing non-ASCII identifiers in:mod:`lib2to3.pgen2.tokenize` (PEP
3399-
3131).
3398+
Fix parsing non-ASCII identifiers in:mod:`!lib2to3.pgen2.tokenize`
3399+
(:pep:`3131`).
34003400

34013401
..
34023402

‎Misc/NEWS.d/3.9.0a5.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ a different condition than the GIL.
11221122
.. nonce: Nbl7lF
11231123
.. section: Tools/Demos
11241124
1125-
Added support to fix ``getproxies`` in the:mod:`lib2to3.fixes.fix_urllib`
1125+
Added support to fix ``getproxies`` in the:mod:`!lib2to3.fixes.fix_urllib`
11261126
module. Patch by José Roberto Meza Cabrera.
11271127

11281128
..

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp