From: Alex Waygood Date: Fri, 7 Apr 2023 17:14:50 +0000 (+0100) Subject: gh-103193: Celebrate performance improvements to `inspect.getattr_static` in 'What... X-Git-Tag: v3.12.0b1~616 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=04501ee57e7f6ef216b15b45785285fe4acebc42;p=thirdparty%2FPython%2Fcpython.git gh-103193: Celebrate performance improvements to `inspect.getattr_static` in 'What's New in Python 3.12' (#103349) --- diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index 23524ec5d7d4..3a12fb20c43c 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -255,6 +255,10 @@ inspect for determining the current state of asynchronous generators. (Contributed by Thomas Krennwallner in :issue:`35759`.) +* The performance of :func:`inspect.getattr_static` has been considerably + improved. Most calls to the function should be around 2x faster than they + were in Python 3.11. (Contributed by Alex Waygood in :gh:`103193`.) + pathlib -------