Skip to content

[pull] main from python:main#872

Merged
pull[bot] merged 1 commit into
tj-python:mainfrom
python:main
Mar 17, 2026
Merged

[pull] main from python:main#872
pull[bot] merged 1 commit into
tj-python:mainfrom
python:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Mar 17, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

…build (#145826)

Add special cases for classmethod and staticmethod descriptors in
_PyObject_GetMethodStackRef() to avoid calling tp_descr_get, which
avoids reference count contention on the bound method and underlying
callable. This improves scaling when calling classmethods and
staticmethods from multiple threads.

Also refactor method_vectorcall in classobject.c into a new _PyObject_VectorcallPrepend() helper so that it can be used by
PyObject_VectorcallMethod as well.
@pull pull Bot locked and limited conversation to collaborators Mar 17, 2026
@pull pull Bot added the ⤵️ pull label Mar 17, 2026
@pull pull Bot merged commit e0f7c10 into tj-python:main Mar 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant