SIGN IN SIGN UP

[3.14] gh-145685: Improve scaling of type attribute lookups (gh-145774) (#145874)

Avoid locking in the PyType_Lookup cache-miss path if the type's
tp_version_tag is already valid.

(cherry picked from commit cd5217283112d41c0244e2d96302cbe33f0b4cb1)

Co-authored-by: Sam Gross <colesbury@gmail.com>
M
Miss Islington (bot) committed
cedff2d617c79e2122162049bb75e1d690d9f5eb
Parent: 6669b20
Committed by GitHub <noreply@github.com> on 3/12/2026, 6:33:05 PM