SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 140 Python

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

`threading.Lock` is now the underlying class and is constructable rather than the old
factory function. This allows for type annotations to refer to it which had no non-ugly
way to be expressed prior to this.

---------

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
N
Nikita Sobolev committed
d96358ff9de646dbf64dfdfed46d510da7ec4803
Parent: b52fc70
Committed by GitHub <noreply@github.com> on 1/25/2024, 7:46:32 PM