Skip to content

Commit 95fb6dc

Browse files
committed
docs
1 parent 0fed9ae commit 95fb6dc

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

Doc/library/dis.rst

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -703,15 +703,8 @@ not have to be) the original ``STACK[-2]``.
703703
STACK.append(lhs op rhs)
704704

705705
.. versionadded:: 3.11
706-
707-
708-
.. opcode:: BINARY_SUBSCR
709-
710-
Implements::
711-
712-
key = STACK.pop()
713-
container = STACK.pop()
714-
STACK.append(container[key])
706+
.. versionchanged:: 3.14
707+
With oparg `NB_SUBSCR`, implements binary subscript (replaces opcode BINARY_SUBSCR)
715708

716709

717710
.. opcode:: STORE_SUBSCR

Doc/whatsnew/3.14.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,6 +1199,12 @@ Others
11991199
:meth:`~object.__index__`. (Contributed by Mark Dickinson in :gh:`119743`.)
12001200

12011201

1202+
CPython Bytecode Changes
1203+
========================
1204+
1205+
* Replaced :opcode:`BINARY_SUBSCR` by :opcode:`BINARY_OP` with oparg ``NB_SUBSCR``.
1206+
(Contributed by Irit Katriel in :gh:`100239`.)
1207+
12021208
Porting to Python 3.14
12031209
======================
12041210

0 commit comments

Comments
 (0)