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

Allow use of asynchronous generator expressions in synchronous functions #75889

Closed
1st1 opened this issue Oct 6, 2017 · 3 comments
Closed

Allow use of asynchronous generator expressions in synchronous functions #75889

1st1 opened this issue Oct 6, 2017 · 3 comments
Assignees
Labels
3.7 (EOL) end of life interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error

Comments

@1st1
Copy link
Member

1st1 commented Oct 6, 2017

BPO 31708
Nosy @ncoghlan, @1st1
PRs
  • bpo-31708: Allow async generator expressions in synchronous functions #3905
  • Dependencies
  • bpo-31709: Drop support for asynchronous aiter
  • 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 = 'https://github.com/1st1'
    closed_at = <Date 2017-10-06.06:58:58.103>
    created_at = <Date 2017-10-06.04:23:32.003>
    labels = ['interpreter-core', 'type-bug', '3.7']
    title = 'Allow use of asynchronous generator expressions in synchronous functions'
    updated_at = <Date 2017-10-06.06:58:58.102>
    user = 'https://github.com/1st1'

    bugs.python.org fields:

    activity = <Date 2017-10-06.06:58:58.102>
    actor = 'yselivanov'
    assignee = 'yselivanov'
    closed = True
    closed_date = <Date 2017-10-06.06:58:58.103>
    closer = 'yselivanov'
    components = ['Interpreter Core']
    creation = <Date 2017-10-06.04:23:32.003>
    creator = 'yselivanov'
    dependencies = ['31709']
    files = []
    hgrepos = []
    issue_num = 31708
    keywords = ['patch']
    message_count = 3.0
    messages = ['303797', '303803', '303805']
    nosy_count = 2.0
    nosy_names = ['ncoghlan', 'yselivanov']
    pr_nums = ['3905']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue31708'
    versions = ['Python 3.7']

    @1st1 1st1 added the 3.7 (EOL) end of life label Oct 6, 2017
    @1st1 1st1 self-assigned this Oct 6, 2017
    @1st1 1st1 added interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error labels Oct 6, 2017
    @1st1
    Copy link
    Member Author

    1st1 commented Oct 6, 2017

    Prior to Python 3.7 we couldn't enable use of asynchronous generator expressions in synchronous functions:

        async arange(n):
            for i in range(n):
                yield i
    
        def make_arange(n):
            return (i async for i in arange(n))

    @1st1
    Copy link
    Member Author

    1st1 commented Oct 6, 2017

    @1st1
    Copy link
    Member Author

    1st1 commented Oct 6, 2017

    New changeset b8ab9d3 by Yury Selivanov in branch 'master':
    bpo-31708: Allow async generator expressions in synchronous functions (bpo-3905)
    b8ab9d3

    @1st1 1st1 closed this as completed Oct 6, 2017
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant