FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-114315: Make `threading.Lock` a real class, not a factory function by sobolevn · Pull Request #114479 · python/cpython · GitHub

/ cpython Public

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

gh-114315: Make threading.Lock a real class, not a factory function#114479
gpshead merged 9 commits into
python:mainfrom
sobolevn:issue-114315

Conversation

sobolevn commented Jan 23, 2024
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Member

Comment thread Doc/library/threading.rst Outdated
gpshead self-assigned this Jan 25, 2024
gpshead enabled auto-merge (squash) January 25, 2024 19:20
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL