From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 6 May 2026 02:52:33 +0000 (+0200) Subject: [3.13] gh-149096: Remove 'im_*' attribute reference from inspect module docstring... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59b260c61b5abb75edcb2b0ab901274a58dfc856;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-149096: Remove 'im_*' attribute reference from inspect module docstring (GH-149108) (#149440) gh-149096: Remove 'im_*' attribute reference from inspect module docstring (GH-149108) The im_class/func/self names were removed in 3.0. The prefix appears nowhere else in inspect.py and nowhere in inspect.rst. (cherry picked from commit e4444538dcd60a1b655c620b4d3bba59a7830f25) Co-authored-by: Vineet Kumar <108144301+whyvineet@users.noreply.github.com> --- diff --git a/Lib/inspect.py b/Lib/inspect.py index d74444e27bed..ea384ba5b53b 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -1,7 +1,7 @@ """Get useful information from live Python objects. This module encapsulates the interface provided by the internal special -attributes (co_*, im_*, tb_*, etc.) in a friendlier fashion. +attributes (co_*, tb_*, etc.) in a friendlier fashion. It also provides some help for examining source code and class layout. Here are some of the useful functions provided by this module: