[issue45997] asyncio.Semaphore waiters deque doesn't work

2022-03-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset f47984b560f1dafe4d907cef4edadfb1746bf027 by Andrew Svetlov in branch '3.9': [3.9] bpo-45997: Fix asyncio.Semaphore re-acquiring order (GH-31910) (GH-32049) https://github.com/python/cpython/commit/f47984b560f1dafe4d907cef4edadfb1746bf027

[issue45997] asyncio.Semaphore waiters deque doesn't work

2022-03-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 9d59381a5d20157930bae34e5f5a7bc5ef09fa89 by Miss Islington (bot) in branch '3.10': [3.10] bpo-45997: Fix asyncio.Semaphore re-acquiring order (GH-31910) (#32047) https://github.com/python/cpython/commit/9d59381a5d20157930bae34e5f5a7bc5ef09fa89

[issue45997] asyncio.Semaphore waiters deque doesn't work

2022-03-22 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +30138 pull_request: https://github.com/python/cpython/pull/32049 ___ Python tracker ___

[issue45997] asyncio.Semaphore waiters deque doesn't work

2022-03-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +30137 pull_request: https://github.com/python/cpython/pull/32047 ___ Python tracker

[issue45997] asyncio.Semaphore waiters deque doesn't work

2022-03-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 32e77154ddfc514a3144d5912bffdd957246fd6c by Andrew Svetlov in branch 'main': bpo-45997: Fix asyncio.Semaphore re-acquiring order (GH-31910) https://github.com/python/cpython/commit/32e77154ddfc514a3144d5912bffdd957246fd6c --

[issue45997] asyncio.Semaphore waiters deque doesn't work

2022-03-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks, Yuri. I'll take a look. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45997] asyncio.Semaphore waiters deque doesn't work

2022-03-15 Thread Yury Selivanov
Yury Selivanov added the comment: Andrew, the same problem exists in asyncio.Queue which is also critical. Here's how I fixed it in edgedb code base: https://github.com/edgedb/edgedb/blob/08e41341024828df22a01cd690b11fcff00bca5e/edb/server/compiler_pool/queue.py#L51-L74 --

[issue45997] asyncio.Semaphore waiters deque doesn't work

2022-03-15 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +30003 pull_request: https://github.com/python/cpython/pull/31910 ___ Python tracker ___

[issue45997] asyncio.Semaphore waiters deque doesn't work

2021-12-11 Thread Yevhenii Hyzyla
Change by Yevhenii Hyzyla : -- versions: +Python 3.11 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45997] asyncio.Semaphore waiters deque doesn't work

2021-12-11 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 3.0 -> 4.0 pull_requests: +28277 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30052 ___ Python tracker

[issue45997] asyncio.Semaphore waiters deque doesn't work

2021-12-06 Thread Yevhenii Hyzyla
Yevhenii Hyzyla added the comment: Thanks for response! > A hero who can help is welcome! I will try to make PR :raising_hand -- type: behavior -> versions: +Python 3.8 -Python 3.11 ___ Python tracker

[issue45997] asyncio.Semaphore waiters deque doesn't work

2021-12-06 Thread Andrew Svetlov
Andrew Svetlov added the comment: Or, maybe, there is a way to do everything without changing public API. The idea is: _wake_up_next can create a future which is set by *waked up task* on its acquiring. acquire method should wait for this future first before entering in `while self._value <

[issue45997] asyncio.Semaphore waiters deque doesn't work

2021-12-06 Thread Alex Waygood
Change by Alex Waygood : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45997] asyncio.Semaphore waiters deque doesn't work

2021-12-06 Thread Alex Waygood
Change by Alex Waygood : -- title: asyncio.Semaphore waiters deqeueu doesn't work -> asyncio.Semaphore waiters deque doesn't work ___ Python tracker ___