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

Enforce PEP 479—StopIteration and generators—in Python 3.7 by default #76851

Closed
1st1 opened this issue Jan 25, 2018 · 2 comments
Closed

Enforce PEP 479—StopIteration and generators—in Python 3.7 by default #76851

1st1 opened this issue Jan 25, 2018 · 2 comments
Assignees
Labels
3.7 (EOL) end of life interpreter-core (Objects, Python, Grammar, and Parser dirs) release-blocker type-feature A feature request or enhancement

Comments

@1st1
Copy link
Member

1st1 commented Jan 25, 2018

BPO 32670
Nosy @gvanrossum, @ncoghlan, @ned-deily, @1st1
PRs
  • bpo-32670: Enforce PEP 479. #5327
  • 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 2018-01-26.20:24:59.226>
    created_at = <Date 2018-01-25.21:50:49.062>
    labels = ['interpreter-core', 'type-feature', '3.7', 'release-blocker']
    title = 'Enforce PEP 479\xe2\x80\x94StopIteration and generators\xe2\x80\x94in Python 3.7 by default'
    updated_at = <Date 2018-01-26.20:24:59.225>
    user = 'https://github.com/1st1'

    bugs.python.org fields:

    activity = <Date 2018-01-26.20:24:59.225>
    actor = 'yselivanov'
    assignee = 'yselivanov'
    closed = True
    closed_date = <Date 2018-01-26.20:24:59.226>
    closer = 'yselivanov'
    components = ['Interpreter Core']
    creation = <Date 2018-01-25.21:50:49.062>
    creator = 'yselivanov'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32670
    keywords = ['patch']
    message_count = 2.0
    messages = ['310712', '310789']
    nosy_count = 4.0
    nosy_names = ['gvanrossum', 'ncoghlan', 'ned.deily', 'yselivanov']
    pr_nums = ['5327']
    priority = 'release blocker'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue32670'
    versions = ['Python 3.7']

    @1st1
    Copy link
    Member Author

    1st1 commented Jan 25, 2018

    As per PEP-479, in Python 3.7 it should be a RuntimeError when a StopIteration exception is raised manually in a generator, a coroutine, or an async generator.

    @1st1 1st1 self-assigned this Jan 25, 2018
    @1st1 1st1 added interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement labels Jan 25, 2018
    @1st1
    Copy link
    Member Author

    1st1 commented Jan 26, 2018

    New changeset 43c47fe by Yury Selivanov in branch 'master':
    bpo-32670: Enforce PEP-479. (bpo-5327)
    43c47fe

    @1st1 1st1 closed this as completed Jan 26, 2018
    @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) release-blocker type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant