Skip to content
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

Add a Barrier object in asyncio lib #87518

Closed
YvesDup mannequin opened this issue Mar 1, 2021 · 4 comments
Closed

Add a Barrier object in asyncio lib #87518

YvesDup mannequin opened this issue Mar 1, 2021 · 4 comments
Labels
3.11 only security fixes topic-asyncio type-feature A feature request or enhancement

Comments

@YvesDup
Copy link
Mannequin

YvesDup mannequin commented Mar 1, 2021

BPO 43352
Nosy @asvetlov, @1st1, @eamanu, @YvesDup
PRs
  • bpo-43352: Add a Barrier object in asyncio lib #24903
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2022-03-25.22:02:23.486>
    created_at = <Date 2021-03-01.11:39:56.345>
    labels = ['3.11', 'type-feature', 'expert-asyncio']
    title = 'Add a Barrier object in asyncio lib'
    updated_at = <Date 2022-03-25.22:02:23.485>
    user = 'https://github.com/YvesDup'

    bugs.python.org fields:

    activity = <Date 2022-03-25.22:02:23.485>
    actor = 'asvetlov'
    assignee = 'none'
    closed = True
    closed_date = <Date 2022-03-25.22:02:23.486>
    closer = 'asvetlov'
    components = ['asyncio']
    creation = <Date 2021-03-01.11:39:56.345>
    creator = 'yduprat'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 43352
    keywords = ['patch']
    message_count = 4.0
    messages = ['387855', '392282', '396453', '416019']
    nosy_count = 5.0
    nosy_names = ['asvetlov', 'python-dev', 'yselivanov', 'eamanu', 'yduprat']
    pr_nums = ['24903']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue43352'
    versions = ['Python 3.11']

    @YvesDup
    Copy link
    Mannequin Author

    YvesDup mannequin commented Mar 1, 2021

    Add a synchronized primitive Barrier in asyncio, in order to be consistent with them we have for threading.

    Barrier object will have a similar design from that of threading lib.
    (May be we have to think about a backport ?)

    Initial discussion started here: https://mail.python.org/archives/list/python-ideas@python.org/thread/IAFAH7PWMUDUTLXYLNSXES7VMDQ26A3W/

    @YvesDup YvesDup mannequin added 3.7 (EOL) end of life 3.8 only security fixes 3.9 only security fixes 3.10 only security fixes topic-asyncio type-feature A feature request or enhancement labels Mar 1, 2021
    @YvesDup
    Copy link
    Mannequin Author

    YvesDup mannequin commented Apr 29, 2021

    An update was submitted on PR.

    Modified python files are:

    file lib/asyncio/locks.py
    file lib/test/test_asyncio/test_locks.py

    And related documentation files

    file Doc/library/asyncio-api-index.rst
    file Doc/library/asyncio-sync.rst

    Please, could you have a look ?

    @YvesDup YvesDup mannequin added the 3.11 only security fixes label Apr 29, 2021
    @YvesDup
    Copy link
    Mannequin Author

    YvesDup mannequin commented Jun 24, 2021

    This last version includes the propositions, remarks from @asveltov and @eamanu

    This PR is always stuck, so could you please approve the 3 running workflows ?

    @asvetlov
    Copy link
    Contributor

    New changeset d03acd7 by Duprat in branch 'main':
    bpo-43352: Add a Barrier object in asyncio lib (GH-24903)
    d03acd7

    @asvetlov asvetlov removed 3.7 (EOL) end of life 3.8 only security fixes 3.9 only security fixes 3.10 only security fixes labels Mar 25, 2022
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    YvesDup added a commit to YvesDup/cpython that referenced this issue May 18, 2022
    Add a paragraph in whatnew 3.11#asyncio
    about python#87518
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.11 only security fixes topic-asyncio type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant