[docs] Incorrect documentation in threading.Lock?

Koskinen Tapio tapio.koskinen at insta.fi
Thu Feb 21 02:34:10 EST 2019


https://docs.python.org/3/library/threading.html#threading.Lock.acquire says:

"When invoked with the blocking argument set to True (the default), block until the lock is unlocked, then set it to locked and return True.

When invoked with the blocking argument set to False, do not block. If a call with blocking set to True would block, return False immediately; otherwise, set the lock to locked and return True.
"

Shouldn't the second paragraph's second sentence start with "If a call with blocking set to *False* would block..."? Or to avoid repetition, maybe something like "If such a call would block...".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20190221/9d3947cb/attachment-0001.html>


More information about the docs mailing list