Issue 36794: asyncio.Lock documentation in Py3.8 lacks parts presented in documentation in Py3.6 (original) (raw)

Created on 2019-05-04 14:20 by germn, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 13082 merged python-dev,2019-05-04 17:47
PR 13659 merged miss-islington,2019-05-29 17:30
Messages (11)
msg341385 - (view) Author: Mikhail Gerasimov (germn) Date: 2019-05-04 14:20
Compare: https://docs.python.org/3.6/library/asyncio-sync.html#asyncio.Lock https://docs.python.org/3.8/library/asyncio-sync.html#asyncio.Lock First version is much more detailed. It allows to avoid confusions like one with unlocking order: https://stackoverflow.com/q/55951233/1113207
msg341394 - (view) Author: Hrvoje Nikšić (hniksic) * Date: 2019-05-04 17:39
Also, the docstring of asyncio.Lock still states: When more than one coroutine is blocked in acquire() waiting for the state to turn to unlocked, only one coroutine proceeds when a release() call resets the state to unlocked; first coroutine which is blocked in acquire() is being processed.
msg341720 - (view) Author: Stéphane Wirtel (matrixise) * (Python committer) Date: 2019-05-07 13:13
Hi hniksic, Could you add your Github Account to your BPO account, without that, we can't work on your PR, and you need to sign the CLA. Thank you
msg341735 - (view) Author: Hrvoje Nikšić (hniksic) * Date: 2019-05-07 14:35
How do I connect the accounts? Please note that I've previously submitted PRs which have been accepted, e.g. https://bugs.python.org/issue34476 and https://bugs.python.org/issue35465
msg341741 - (view) Author: Hrvoje Nikšić (hniksic) * Date: 2019-05-07 14:54
Ok, found it, and I've now updated the github name on my bpo account. I'll gladly sign the CLA if needed, I thought it wasn't necessary for small changes based on previous experience. Please advise whether it's necessary here.
msg341744 - (view) Author: Stéphane Wirtel (matrixise) * (Python committer) Date: 2019-05-07 15:06
If I read the Licensing section into the devguide, a contributor (me, your, etc..) has to sign the CLA. https://devguide.python.org/pullrequest/#cla "To accept your change we must have your formal approval for distributing your work under the PSF license." the verb is must -> required! Thank you
msg341758 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2019-05-07 15:48
I would say that unblock order is an implementation detail (which is unlikely be changed though). I'm biased how should we document it. Yuri, your opinion is very welcome.
msg342195 - (view) Author: Hrvoje Nikšić (hniksic) * Date: 2019-05-11 14:59
@matrixise I've signed the CLA in the meantime, and it's now confirmed by https://check-python-cla.herokuapp.com/ Thanks for the pointer.
msg342207 - (view) Author: Stéphane Wirtel (matrixise) * (Python committer) Date: 2019-05-11 16:37
Hi Hrvoje Nikšić, Thank you for the CLA, now, we need the opinion from Yury and their approval, I am not an expert of the asyncio. Thank you,
msg343901 - (view) Author: miss-islington (miss-islington) Date: 2019-05-29 17:08
New changeset 34f4f5efea730504216ee19f237734e0bb0104ee by Miss Islington (bot) (Hrvoje Nikšić) in branch 'master': bpo-36794: Document that Lock.acquire is fair. (GH-13082) https://github.com/python/cpython/commit/34f4f5efea730504216ee19f237734e0bb0104ee
msg343907 - (view) Author: miss-islington (miss-islington) Date: 2019-05-29 18:24
New changeset 4e1e887203ef069bf293ecabd945f7567d6a4879 by Miss Islington (bot) in branch '3.7': bpo-36794: Document that Lock.acquire is fair. (GH-13082) https://github.com/python/cpython/commit/4e1e887203ef069bf293ecabd945f7567d6a4879
History
Date User Action Args
2022-04-11 14:59:14 admin set github: 80975
2019-05-29 18:24:40 miss-islington set messages: +
2019-05-29 17:30:46 miss-islington set pull_requests: + <pull%5Frequest13551>
2019-05-29 17:11:21 asvetlov set status: open -> closedresolution: fixedstage: patch review -> resolved
2019-05-29 17:08:20 miss-islington set nosy: + miss-islingtonmessages: +
2019-05-11 16:37:08 matrixise set messages: +
2019-05-11 14:59:05 hniksic set messages: +
2019-05-07 15:48:17 asvetlov set messages: +
2019-05-07 15:06:54 matrixise set messages: +
2019-05-07 14:54:16 hniksic set messages: +
2019-05-07 14:35:02 hniksic set messages: +
2019-05-07 13:13:11 matrixise set nosy: + matrixisemessages: +
2019-05-04 17:47:37 python-dev set keywords: + patchstage: patch reviewpull_requests: + <pull%5Frequest12997>
2019-05-04 17:39:18 hniksic set nosy: + hniksicmessages: +
2019-05-04 14:20:06 germn create