Skip to content

gh-157841: Synchronize functools.partial state access - #160480

Draft
mpage wants to merge 1 commit into
python:mainfrom
mpage:gh-157979-ft-functools-partial
Draft

mpage wants to merge 1 commit into
python:mainfrom
mpage:gh-157979-ft-functools-partial

Conversation

@mpage

@mpage mpage commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Acquire coherent strong-reference snapshots under the partial object lock for calls, repr, reduce, and nested-partial construction. Publish replacement state atomically, release displaced references after publication, and retire replaced instance dictionaries through QSBR. Keep free-threaded vectorcall dispatch immutable after construction.

Add concurrent state/coherence coverage, placeholder-aware flattening tests, and regressions for reentrant keyword merging and finalizers.

Authored with AI and reviewed by me.

Acquire coherent strong-reference snapshots under the partial object lock for
calls, repr, reduce, and nested-partial construction. Publish replacement state
atomically, release displaced references after publication, and retire replaced
instance dictionaries through QSBR. Keep free-threaded vectorcall dispatch
immutable after construction.

Add concurrent state/coherence coverage, placeholder-aware flattening tests, and
regressions for reentrant keyword merging and finalizers.
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