From 7066c60cf370c2398fa3aad9ba7fa9f8c0edefe1 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Date: Fri, 22 Sep 2023 13:50:20 +0100 Subject: [PATCH] GH-109190: Copyedit 3.12 What's New: bytecode (LOAD_METHOD) (GH-109665) (cherry picked from commit d9415f6a45c2c4163b593713ef765cb2a60f8aa7) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> bytecode: suppress reference to removed LOAD_METHOD --- Doc/whatsnew/3.12.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index 3bd9081c793b78..4da6b02d10bde4 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -999,9 +999,9 @@ Optimizations CPython bytecode changes ======================== -* Remove the :opcode:`LOAD_METHOD` instruction. It has been merged into +* Remove the :opcode:`!LOAD_METHOD` instruction. It has been merged into :opcode:`LOAD_ATTR`. :opcode:`LOAD_ATTR` will now behave like the old - :opcode:`LOAD_METHOD` instruction if the low bit of its oparg is set. + :opcode:`!LOAD_METHOD` instruction if the low bit of its oparg is set. (Contributed by Ken Jin in :gh:`93429`.) * Remove the :opcode:`!JUMP_IF_FALSE_OR_POP` and :opcode:`!JUMP_IF_TRUE_OR_POP`