]> granicus.if.org Git - python/commit
bpo-38026: fix inspect.getattr_static (GH-15676)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 5 Sep 2019 04:25:59 +0000 (21:25 -0700)
committerGitHub <noreply@github.com>
Thu, 5 Sep 2019 04:25:59 +0000 (21:25 -0700)
commitbdcbb83c6640c2b30d0e1a2a497e9ba34cc53b26
tree82545bc4e40a58e6b6268fa899c435468eaca87e
parent9c2654d1aa85968fede1b888fba86aebc06c5be6
bpo-38026: fix inspect.getattr_static (GH-15676)

It should avoid dynamic lookup including `isinstance`.

This is a regression caused by GH-5351.
(cherry picked from commit 8f9cc8771ffb8d0e21be287eaed42ae06087acca)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Lib/inspect.py
Misc/NEWS.d/next/Library/2019-09-04-20-34-14.bpo-38026.0LLRX-.rst [new file with mode: 0644]