Skip to content

Commit 5693319

Browse files
authored
[3.13] gh-101100: Fix sphinx warnings of removed opcodes (GH-127222) (#127239)
1 parent a6e61fd commit 5693319

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

Doc/whatsnew/3.4.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1979,7 +1979,7 @@ Other Improvements
19791979
now works correctly (previously it silently returned the first python
19801980
module in the file). (Contributed by Václav Šmilauer in :issue:`16421`.)
19811981

1982-
* A new opcode, :opcode:`LOAD_CLASSDEREF`, has been added to fix a bug in the
1982+
* A new opcode, :opcode:`!LOAD_CLASSDEREF`, has been added to fix a bug in the
19831983
loading of free variables in class bodies that could be triggered by certain
19841984
uses of :ref:`__prepare__ <prepare>`. (Contributed by Benjamin Peterson in
19851985
:issue:`17853`.)

Doc/whatsnew/3.6.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2366,7 +2366,7 @@ There have been several major changes to the :term:`bytecode` in Python 3.6.
23662366
(Contributed by Demur Rumed with input and reviews from
23672367
Serhiy Storchaka and Victor Stinner in :issue:`26647` and :issue:`28050`.)
23682368

2369-
* The new :opcode:`FORMAT_VALUE` and :opcode:`BUILD_STRING` opcodes as part
2369+
* The new :opcode:`!FORMAT_VALUE` and :opcode:`BUILD_STRING` opcodes as part
23702370
of the :ref:`formatted string literal <whatsnew36-pep498>` implementation.
23712371
(Contributed by Eric Smith in :issue:`25483` and
23722372
Serhiy Storchaka in :issue:`27078`.)
@@ -2377,16 +2377,16 @@ There have been several major changes to the :term:`bytecode` in Python 3.6.
23772377

23782378
* The function call opcodes have been heavily reworked for better performance
23792379
and simpler implementation.
2380-
The :opcode:`MAKE_FUNCTION`, :opcode:`CALL_FUNCTION`,
2381-
:opcode:`CALL_FUNCTION_KW` and :opcode:`BUILD_MAP_UNPACK_WITH_CALL` opcodes
2380+
The :opcode:`MAKE_FUNCTION`, :opcode:`!CALL_FUNCTION`,
2381+
:opcode:`!CALL_FUNCTION_KW` and :opcode:`!BUILD_MAP_UNPACK_WITH_CALL` opcodes
23822382
have been modified, the new :opcode:`CALL_FUNCTION_EX` and
2383-
:opcode:`BUILD_TUPLE_UNPACK_WITH_CALL` have been added, and
2383+
:opcode:`!BUILD_TUPLE_UNPACK_WITH_CALL` have been added, and
23842384
``CALL_FUNCTION_VAR``, ``CALL_FUNCTION_VAR_KW`` and ``MAKE_CLOSURE`` opcodes
23852385
have been removed.
23862386
(Contributed by Demur Rumed in :issue:`27095`, and Serhiy Storchaka in
23872387
:issue:`27213`, :issue:`28257`.)
23882388

2389-
* The new :opcode:`SETUP_ANNOTATIONS` and :opcode:`STORE_ANNOTATION` opcodes
2389+
* The new :opcode:`SETUP_ANNOTATIONS` and :opcode:`!STORE_ANNOTATION` opcodes
23902390
have been added to support the new :term:`variable annotation` syntax.
23912391
(Contributed by Ivan Levkivskyi in :issue:`27985`.)
23922392

Doc/whatsnew/3.7.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2476,10 +2476,10 @@ avoiding possible problems use new functions :c:func:`PySlice_Unpack` and
24762476
CPython bytecode changes
24772477
------------------------
24782478

2479-
There are two new opcodes: :opcode:`LOAD_METHOD` and :opcode:`CALL_METHOD`.
2479+
There are two new opcodes: :opcode:`LOAD_METHOD` and :opcode:`!CALL_METHOD`.
24802480
(Contributed by Yury Selivanov and INADA Naoki in :issue:`26110`.)
24812481

2482-
The :opcode:`STORE_ANNOTATION` opcode has been removed.
2482+
The :opcode:`!STORE_ANNOTATION` opcode has been removed.
24832483
(Contributed by Mark Shannon in :issue:`32550`.)
24842484

24852485

Doc/whatsnew/3.8.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2152,11 +2152,11 @@ CPython bytecode changes
21522152
cleaning-up code for :keyword:`break`, :keyword:`continue` and
21532153
:keyword:`return`.
21542154

2155-
Removed opcodes :opcode:`BREAK_LOOP`, :opcode:`CONTINUE_LOOP`,
2156-
:opcode:`SETUP_LOOP` and :opcode:`SETUP_EXCEPT`. Added new opcodes
2157-
:opcode:`ROT_FOUR`, :opcode:`BEGIN_FINALLY`, :opcode:`CALL_FINALLY` and
2158-
:opcode:`POP_FINALLY`. Changed the behavior of :opcode:`END_FINALLY`
2159-
and :opcode:`WITH_CLEANUP_START`.
2155+
Removed opcodes :opcode:`!BREAK_LOOP`, :opcode:`!CONTINUE_LOOP`,
2156+
:opcode:`!SETUP_LOOP` and :opcode:`!SETUP_EXCEPT`. Added new opcodes
2157+
:opcode:`!ROT_FOUR`, :opcode:`!BEGIN_FINALLY`, :opcode:`!CALL_FINALLY` and
2158+
:opcode:`!POP_FINALLY`. Changed the behavior of :opcode:`!END_FINALLY`
2159+
and :opcode:`!WITH_CLEANUP_START`.
21602160

21612161
(Contributed by Mark Shannon, Antoine Pitrou and Serhiy Storchaka in
21622162
:issue:`17611`.)

0 commit comments

Comments
 (0)