Skip to content

Handle KeyboardInterrupt in asyncio #83803

@developerdong

Description

@developerdong
BPO 39622
Nosy @asvetlov, @1st1, @kmaork, @developerdong
PRs
  • bpo-39622: Use a custom signal handler in asyncio.run() #18628
  • bpo-39622: Interrupt the main asyncio task on Ctrl+C #32105
  • Files
  • SleepTest.py
  • asyncio_bug_demo.py
  • 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/asvetlov'
    closed_at = <Date 2022-03-30.12:16:00.133>
    created_at = <Date 2020-02-13.07:09:49.352>
    labels = ['3.11', 'type-bug', 'expert-asyncio']
    title = 'Handle KeyboardInterrupt in asyncio'
    updated_at = <Date 2022-03-30.12:16:00.132>
    user = 'https://github.com/developerdong'

    bugs.python.org fields:

    activity = <Date 2022-03-30.12:16:00.132>
    actor = 'asvetlov'
    assignee = 'asvetlov'
    closed = True
    closed_date = <Date 2022-03-30.12:16:00.133>
    closer = 'asvetlov'
    components = ['asyncio']
    creation = <Date 2020-02-13.07:09:49.352>
    creator = 'Zhibin Dong'
    dependencies = []
    files = ['48893', '48906']
    hgrepos = []
    issue_num = 39622
    keywords = ['patch']
    message_count = 15.0
    messages = ['361939', '362267', '362295', '362341', '362346', '362377', '362542', '362544', '362586', '362610', '362668', '362670', '362751', '363679', '416345']
    nosy_count = 4.0
    nosy_names = ['asvetlov', 'yselivanov', 'kmaork', 'Zhibin Dong']
    pr_nums = ['18628', '32105']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue39622'
    versions = ['Python 3.11']

    Metadata

    Metadata

    Assignees

    Labels

    3.11only security fixestopic-asynciotype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions