-
-
Notifications
You must be signed in to change notification settings - Fork 33k
gh-124397: Add pure Python implementation of threading.iter_locked
#138261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
I would have really preferred something like |
threading.iter_locked
I'm still not a huge fan of putting this in |
Just an idea: what about using the builtin |
I like that idea, but it would require a lot more work to accomplish. Changes to builtins require PEPs. |
Add a Python implementation of
iter_locked
.Continuation of #133908 and #133272. The name was discussed in discuss.python.org
Since this is now a pure python implementation, we could also consider adding this to packages such as https://github.com/facebookincubator/ft_utils or https://github.com/dpdani/cereggii
📚 Documentation preview 📚: https://cpython-previews--138261.org.readthedocs.build/