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

Commit3d8ac48

Browse files
authored
gh-101100: Fix sphinx warnings of removed opcodes (#127222)
1 parent2104bde commit3d8ac48

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

‎Doc/whatsnew/3.11.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1670,7 +1670,7 @@ Replaced opcodes
16701670
||| for each direction|
16711671
||||
16721672
+------------------------------------+------------------------------------+-----------------------------------------+
1673-
||:opcode:`!SETUP_WITH`|:opcode:`BEFORE_WITH`|:keyword:`with` block setup|
1673+
||:opcode:`!SETUP_WITH`|:opcode:`!BEFORE_WITH`|:keyword:`with` block setup|
16741674
||:opcode:`!SETUP_ASYNC_WITH`|||
16751675
+------------------------------------+------------------------------------+-----------------------------------------+
16761676

‎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: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2366,27 +2366,27 @@ 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`.)
23732373

2374-
* The new:opcode:`BUILD_CONST_KEY_MAP` opcode to optimize the creation
2374+
* The new:opcode:`!BUILD_CONST_KEY_MAP` opcode to optimize the creation
23752375
of dictionaries with constant keys.
23762376
(Contributed by Serhiy Storchaka in:issue:`27140`.)
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`.)

‎Doc/whatsnew/3.9.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ Changes in the C API
12031203
CPython bytecode changes
12041204
------------------------
12051205

1206-
* The:opcode:`LOAD_ASSERTION_ERROR` opcode was added for handling the
1206+
* The:opcode:`!LOAD_ASSERTION_ERROR` opcode was added for handling the
12071207
:keyword:`assert` statement. Previously, the assert statement would not work
12081208
correctly if the:exc:`AssertionError` exception was being shadowed.
12091209
(Contributed by Zackery Spytz in:issue:`34880`.)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp