Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gh-96448: fix documentation for _thread.lock.acquire #96449

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 4, 2022

Conversation

dgiger42
Copy link
Contributor

@dgiger42 dgiger42 commented Aug 31, 2022

This change is fairly trivial, so I think it probably doesn't need a news entry. This PR updates the documentation for _thread.lock.acquire() to use the correct name for its first parameter.

I also switched to saying True and False instead of 1 and 0, which is consistent with the function's PyDoc_STRVAR.

@bedevere-bot bedevere-bot added docs Documentation in the Doc dir skip news awaiting review labels Aug 31, 2022
Copy link
Member

@orsenthil orsenthil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@orsenthil orsenthil merged commit 7acb93f into python:main Oct 4, 2022
@miss-islington
Copy link
Contributor

Thanks @dgiger42 for the PR, and @orsenthil for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-97851 is a backport of this pull request to the 3.11 branch.

@bedevere-bot
Copy link

GH-97852 is a backport of this pull request to the 3.10 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Oct 4, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 4, 2022
…96449)

* fix documentation for _thread.lock.acquire

* update formatting of _thread.lock.acquire() doc
(cherry picked from commit 7acb93f)

Co-authored-by: Daniel Giger <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 4, 2022
…96449)

* fix documentation for _thread.lock.acquire

* update formatting of _thread.lock.acquire() doc
(cherry picked from commit 7acb93f)

Co-authored-by: Daniel Giger <[email protected]>
orsenthil pushed a commit that referenced this pull request Oct 4, 2022
#97851)

gh-96448: fix documentation for _thread.lock.acquire (GH-96449)

* fix documentation for _thread.lock.acquire

* update formatting of _thread.lock.acquire() doc
(cherry picked from commit 7acb93f)

Co-authored-by: Daniel Giger <[email protected]>

Co-authored-by: Daniel Giger <[email protected]>
orsenthil pushed a commit that referenced this pull request Oct 4, 2022
#97852)

gh-96448: fix documentation for _thread.lock.acquire (GH-96449)

* fix documentation for _thread.lock.acquire

* update formatting of _thread.lock.acquire() doc
(cherry picked from commit 7acb93f)

Co-authored-by: Daniel Giger <[email protected]>

Co-authored-by: Daniel Giger <[email protected]>
@dgiger42 dgiger42 deleted the update_thread_docs branch October 4, 2022 23:00
mpage pushed a commit to mpage/cpython that referenced this pull request Oct 11, 2022
)

* fix documentation for _thread.lock.acquire

* update formatting of _thread.lock.acquire() doc
pablogsal pushed a commit that referenced this pull request Oct 22, 2022
#97851)

gh-96448: fix documentation for _thread.lock.acquire (GH-96449)

* fix documentation for _thread.lock.acquire

* update formatting of _thread.lock.acquire() doc
(cherry picked from commit 7acb93f)

Co-authored-by: Daniel Giger <[email protected]>

Co-authored-by: Daniel Giger <[email protected]>
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
None yet
Development

Successfully merging this pull request may close these issues.

5 participants