From: Carl Meyer Date: Wed, 31 May 2023 02:19:04 +0000 (-0600) Subject: gh-87729: add LOAD_SUPER_ATTR to 3.12 What's New (#105125) X-Git-Tag: v3.13.0a1~1963 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7fbac51baf64498e467e0a4a35a74b8a83d50630;p=thirdparty%2FPython%2Fcpython.git gh-87729: add LOAD_SUPER_ATTR to 3.12 What's New (#105125) --- diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index f23a733e0c61..8a319ed439d6 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 ===============