Occasionally check for Ctrl-C in long-running operations like sum

Open
#70,539 16 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python

Research direction

Start by reviewing KeyboardInterrupt.patch and test_sig_int_builtins.py, the files attached to this issue. Check how the proposed tests exercise Ctrl-C during long-running built-in operations such as sum. Done means the relevant built-ins can be interrupted and the regression tests pass.

Written by the indexing model from the issue text.

Description

3.7 (EOL) interpreter-core type-bug
BPO 26351
Nosy @rhettinger, @terryjreedy, @ncoghlan, @vstinner, @stevendaprano, @wimglenn, @treyhunner
Files
  • KeyboardInterrupt.patch: Allows interruption of builtin routines using ctrl-c
  • test_sig_int_builtins.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 = None
    closed_at = None
    created_at = <Date 2016-02-12.17:47:32.154>
    labels = ['interpreter-core', 'type-bug', '3.7']
    title = 'Occasionally check for Ctrl-C in long-running operations like sum'
    updated_at = <Date 2016-09-30.14:54:40.369>
    user = 'https://github.com/stevendaprano'
    

    bugs.python.org fields:

    activity = <Date 2016-09-30.14:54:40.369>
    actor = 'trey'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Interpreter Core']
    creation = <Date 2016-02-12.17:47:32.154>
    creator = 'steven.daprano'
    dependencies = []
    files = ['44746', '44747']
    hgrepos = []
    issue_num = 26351
    keywords = ['patch']
    message_count = 15.0
    messages = ['260189', '260238', '260535', '260536', '260556', '276995', '276996', '277002', '277094', '277096', '277098', '277185', '277190', '277220', '277757']
    nosy_count = 8.0
    nosy_names = ['rhettinger', 'terry.reedy', 'ncoghlan', 'vstinner', 'steven.daprano', 'wim.glenn', 'gslavin', 'trey']
    pr_nums = []
    priority = 'low'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue26351'
    versions = ['Python 3.7']
    

    Dominant language
    Python
    Stars
    77.2k
    Forks
    36k
    Avg merge
    1d 9h
    Merged PRs (30d)
    558

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    More from python/cpython

    All issues in python/cpython

    Similar issues

    More Python issues

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.