Skip to content

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

Merged
gpshead merged 9 commits into
python:mainfrom
sobolevn:issue-114315
Jan 25, 2024
Merged

gpshead merged 9 commits into
python:mainfrom
sobolevn:issue-114315

Conversation

@sobolevn

@sobolevn sobolevn commented Jan 23, 2024 •

Copy link
Copy Markdown
Member
Comment thread Doc/library/threading.rst Resolved
@gpshead gpshead self-assigned this Jan 25, 2024
@gpshead
gpshead enabled auto-merge (squash) January 25, 2024 19:20
@gpshead
gpshead merged commit d96358f into python:main Jan 25, 2024
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
…nction (python#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>
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
…nction (python#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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants