bpo-43352: Add a Barrier object in asyncio lib#24903
Conversation
Add a Barrier object to asyncio synchronized primitives
Change after run make patchcheck
run make patchcheck
Add comment when testing self._state Change if to while instruction in _block method
Refactoring all test names of BarrierTests to be more readable Add a method cancel_coros Refactoring and simplifyiing some tests Correction of RGX_REPR
after run python.bat Tools\scripts\patchcheck.py
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA). Recognized GitHub usernameWe couldn't find a bugs.python.org (b.p.o) account corresponding to the following GitHub usernames: This might be simply due to a missing "GitHub Name" entry in one's b.p.o account settings. This is necessary for legal reasons before we can look at this contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. You can check yourself to see if the CLA has been received. Thanks again for the contribution, we look forward to reviewing it! |
Sorry, something went wrong.
|
Please post a clean PR. The current version touches 23 files, most of which are new |
Sorry, something went wrong.
29b38e3 to
04d4f69
Compare
March 31, 2021 14:30
|
PR was cleaned, stayed only 2 files now |
Sorry, something went wrong.
|
Please update the documentation. |
Sorry, something went wrong.
|
@rhettinger I am a rookie on cpython. |
Sorry, something went wrong.
Add Barrier object as a clone of threading.Barrier
|
Please fix documentation example: https://github.com/python/cpython/runs/5646810414?check_suite_focus=true |
Sorry, something went wrong.
…thonGH-24903) Add a test to check multiple reuses of a barrier object.
…ythonGH-24903) Remove `action` paramater
…ythonGH-24903) Remove `import coroutines` Suppress trailing whitespaces
|
Let me re-read the implementation and tests, please. |
Sorry, something went wrong.
|
Sorry, something went wrong.
…ythonGH-24903) Update sample with new `__repr__`
|
Thanks @asvetlov for giving me some time to understand what you did and your last comments. |
Sorry, something went wrong.
This comment was marked as outdated.
This comment was marked as outdated.
|
Sorry, bad merge with master |
Sorry, something went wrong.
…ythonGH-24903) Minor correction in example
|
A very big thank you to @asvetlov and @1st1 for your support and all the work done together on this PR, my first one !! Thanks to @eamanu for your review, and a special thanks to @JulienPalard for his help especially on the good practices on PS: @asvetlov should I do something else, or just close this PR ? |
Sorry, something went wrong.
|
Everything is done. PR is merged, https://bugs.python.org/issue43352 is closed. |
Sorry, something went wrong.
|
@asvetlov Please can tell me how to add a paragraph in whatnew 3.11#asyncio about this new feature ? |
Sorry, something went wrong.
|
@YvesDup Just submit a PR for |
Sorry, something went wrong.
bpo-43352: Add a Barrier object in asyncio lib
Copy design of object Barrier from threading, same features
Modified files are:
file lib/asyncio/locks.py
file lib/test/test_asyncio/test_locks.py
I am not familiar with git, so all files with .rst.bak extension are not in the scope of this PR
Just see https://bugs.python.org/issue37945, so the following paragraph can be deleted
"""
All tests (Win10 Python x64) are done and succesfull except one: python -m test -v test_locale
I am surprised about this error because, asyncio and locale are not linked, or are they ?
Please, how to proceed about this failure ? Open a new issue on bpo ?
a log file is available.
Thank for help
"""
https://bugs.python.org/issue43352