Skip to content

dict and weakref descriptors are singletons in 3.15#728

Merged
mmckerns merged 1 commit intomasterfrom
py3150a1
Oct 20, 2025
Merged

dict and weakref descriptors are singletons in 3.15#728
mmckerns merged 1 commit intomasterfrom
py3150a1

Conversation

@mmckerns
Copy link
Member

Summary

As of python 3.15.0a1, the dict and weakref descriptors now use a single descriptor instance per interpreter, shared across all types that need them. Adjust _getattr to get the singletons.

@mmckerns mmckerns added this to the dill-0.4.1 milestone Oct 20, 2025
@mmckerns mmckerns changed the title dict and weakref attribute are singletons in 3.15 dict and weakref descriptors are singletons in 3.15 Oct 20, 2025
@mmckerns mmckerns merged commit 08f613d into master Oct 20, 2025
2 of 4 checks passed
@mmckerns mmckerns deleted the py3150a1 branch October 20, 2025 02:39
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