Skip to content

gh-114315: Make threading.Lock a real class, not a factory function #114479

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

Merged
merged 9 commits into from
Jan 25, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Doc/library/threading.rst
Original file line number Diff line number Diff line change
Expand Up @@ -535,8 +535,8 @@ All methods are executed atomically.
thread may release it.

.. versionchanged:: 3.13
Prior to 3.13 ``Lock`` actually used to be a factory
function which returned an instance
``Lock`` is now a class. In earlier Python versions,
``Lock`` used to be a factory function which returned an instance
of the most efficient version of the concrete Lock class that is supported
by the platform.

Expand Down