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

[3.14] gh-89554: Document _thread.LockType as a class (GH-150684) by miss-islington · Pull Request #150784 · python/cpython · GitHub

Repository navigation

[3.14] gh-89554: Document _thread.LockType as a class (GH-150684) - #150784

Merged
vstinner merged 1 commit into
python:3.14from
miss-islington:backport-e37ce56-3.14
Jun 2, 2026
Merged

vstinner merged 1 commit into
python:3.14from
miss-islington:backport-e37ce56-3.14

Conversation

miss-islington commented Jun 2, 2026 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

_thread.LockType is a class (the type of lock objects), but was documented
with the ".. data::" directive, so ":class:" cross-references to it cannot
resolve against a py:class target.

Switch the entry to ".. class::", move it next to the lock methods, and
document acquire(), release() and locked() as methods of the class. Keep
the old _thread.lock.* URL fragments working with raw HTML anchors.
(cherry picked from commit e37ce56)

Co-authored-by: Bernát Gábor gaborjbernat@gmail.com

_thread.LockType is a class (the type of lock objects), but was documented
with the ".. data::" directive, so ":class:" cross-references to it cannot
resolve against a py:class target.

Switch the entry to ".. class::", move it next to the lock methods, and
document acquire(), release() and locked() as methods of the class.  Keep
the old _thread.lock.* URL fragments working with raw HTML anchors.
(cherry picked from commit e37ce56)

Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
vstinner merged commit 861ab65 into python:3.14 Jun 2, 2026
36 checks passed
github-project-automation Bot moved this from Todo to Done in Docs PRs Jun 2, 2026
miss-islington deleted the backport-e37ce56-3.14 branch June 2, 2026 13:05
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

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL