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

asyncio.Task implemented in C loses __traceback__ for exceptions #73029

Closed
1st1 opened this issue Nov 30, 2016 · 3 comments
Closed

asyncio.Task implemented in C loses __traceback__ for exceptions #73029

1st1 opened this issue Nov 30, 2016 · 3 comments
Assignees
Labels
3.7 (EOL) end of life topic-asyncio type-bug An unexpected behavior, bug, or error

Comments

@1st1
Copy link
Member

1st1 commented Nov 30, 2016

BPO 28843
Nosy @gvanrossum, @ned-deily, @methane, @1st1
Files
  • task_tb.patch
  • 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 2016-12-01.16:38:39.349>
    created_at = <Date 2016-11-30.18:44:53.640>
    labels = ['type-bug', '3.7', 'expert-asyncio']
    title = 'asyncio.Task implemented in C loses __traceback__ for exceptions'
    updated_at = <Date 2016-12-01.16:38:39.347>
    user = 'https://github.com/1st1'

    bugs.python.org fields:

    activity = <Date 2016-12-01.16:38:39.347>
    actor = 'yselivanov'
    assignee = 'yselivanov'
    closed = True
    closed_date = <Date 2016-12-01.16:38:39.349>
    closer = 'yselivanov'
    components = ['asyncio']
    creation = <Date 2016-11-30.18:44:53.640>
    creator = 'yselivanov'
    dependencies = []
    files = ['45711']
    hgrepos = []
    issue_num = 28843
    keywords = ['patch']
    message_count = 3.0
    messages = ['282092', '282198', '282199']
    nosy_count = 5.0
    nosy_names = ['gvanrossum', 'ned.deily', 'methane', 'python-dev', 'yselivanov']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue28843'
    versions = ['Python 3.6', 'Python 3.7']

    @1st1
    Copy link
    Member Author

    1st1 commented Nov 30, 2016

    When a coroutine wrapped in a C asyncio.Task raises an Exception, the Task fails to correctly save the __traceback__.

    @1st1 1st1 self-assigned this Nov 30, 2016
    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Dec 1, 2016

    New changeset c9f68150cf90 by Yury Selivanov in branch '3.6':
    Issue bpo-28843: Fix asyncio C Task to handle exceptions __traceback__.
    https://hg.python.org/cpython/rev/c9f68150cf90

    New changeset a21a8943c59e by Yury Selivanov in branch 'default':
    Merge 3.6 (issue bpo-28843)
    https://hg.python.org/cpython/rev/a21a8943c59e

    @1st1
    Copy link
    Member Author

    1st1 commented Dec 1, 2016

    Thanks for reviewing the patch, Inada-san. Closing the issue.

    @1st1 1st1 closed this as completed Dec 1, 2016
    @1st1 1st1 added type-bug An unexpected behavior, bug, or error and removed release-blocker labels Dec 1, 2016
    @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 topic-asyncio type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant