From b7c2029d8da5bd5876a6c6a1cb982cf88e1c1825 Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Tue, 30 May 2023 20:19:04 -0600 Subject: [PATCH] gh-87729: add LOAD_SUPER_ATTR to 3.12 What's New (GH-105125) (cherry picked from commit 7fbac51baf64498e467e0a4a35a74b8a83d50630) Co-authored-by: Carl Meyer --- Doc/whatsnew/3.12.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index ef9e4012437f7d..661a074928dbf2 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -899,6 +899,10 @@ Optimizations the :mod:`tokenize` module. (Contributed by Marta Gómez Macías and Pablo Galindo in :gh:`102856`.) +* Speed up :func:`super` method calls and attribute loads via the + new :opcode:`LOAD_SUPER_ATTR` instruction. (Contributed by Carl Meyer and + Vladimir Matveev in :gh:`103497`.) + CPython bytecode changes ======================== @@ -917,6 +921,9 @@ CPython bytecode changes :opcode:`LOAD_LOCALS` plus :opcode:`LOAD_FROM_DICT_OR_DEREF`. (Contributed by Jelle Zijlstra in :gh:`103764`.) +* Add the :opcode:`LOAD_SUPER_ATTR` instruction. (Contributed by Carl Meyer and + Vladimir Matveev in :gh:`103497`.) + Demos and Tools ===============