Skip to content

gh-162227: Fix scaling of format() with a format spec on the free-threading - #162360

Open
kumaraditya303 wants to merge 1 commit into
python:mainfrom
kumaraditya303:gh-162227-format-scaling
Open

kumaraditya303 wants to merge 1 commit into
python:mainfrom
kumaraditya303:gh-162227-format-scaling

Conversation

@kumaraditya303

@kumaraditya303 kumaraditya303 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

…ee-threaded build

PyObject_Format() now looks up __format__ with
_PyObject_LookupSpecialMethod(), avoiding a temporary bound method
and reference count contention on the shared method object.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant