Skip to content

[3.13] gh-89554: Document _thread.LockType as a class (#150684)#150786

Merged
vstinner merged 1 commit into
python:3.13from
vstinner:thread_doc13
Jun 2, 2026
Merged

[3.13] gh-89554: Document _thread.LockType as a class (#150684)#150786
vstinner merged 1 commit into
python:3.13from
vstinner:thread_doc13

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner vstinner commented Jun 2, 2026

_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)

_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)
@vstinner vstinner merged commit 13d8f45 into python:3.13 Jun 2, 2026
29 checks passed
@vstinner vstinner deleted the thread_doc13 branch June 2, 2026 13:13
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Jun 2, 2026
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.

2 participants