python / python/cpython

Guarantee that divmod() and PyNumber_Divmod() return a 2-tuple

Open
#78,857 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

3.8 (EOL) interpreter-core type-feature
Dominant language
Python
Stars
77.2k
Forks
36k
PR merge metrics
PR metrics pending

Description

BPO 34676
Nosy @rhettinger, @mdickinson, @zware, @serhiy-storchaka, @pganssle, @tirkarthi
PRs
  • python/cpython#9301
  • Dependencies
  • bpo-34716: MagicMock.divmod should return a pair
  • 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 2018-09-14.10:13:50.305>
    labels = ['interpreter-core', 'type-feature', '3.8']
    title = 'Guarantee that divmod() and PyNumber_Divmod() return a 2-tuple'
    updated_at = <Date 2018-09-17.19:55:24.197>
    user = 'https://github.com/serhiy-storchaka'
    

    bugs.python.org fields:

    activity = <Date 2018-09-17.19:55:24.197>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Interpreter Core']
    creation = <Date 2018-09-14.10:13:50.305>
    creator = 'serhiy.storchaka'
    dependencies = ['34716']
    files = []
    hgrepos = []
    issue_num = 34676
    keywords = ['patch']
    message_count = 6.0
    messages = ['325341', '325361', '325364', '325398', '325423', '325543']
    nosy_count = 6.0
    nosy_names = ['rhettinger', 'mark.dickinson', 'zach.ware', 'serhiy.storchaka', 'p-ganssle', 'xtreak']
    pr_nums = ['9301']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue34676'
    versions = ['Python 3.8']
    

    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.

    Research direction

    Review PR #9301 and BPO issue 34676 first, then inspect the existing divmod() and PyNumber_Divmod() behavior. Account for the dependency on bpo-34716 and verify that both named APIs consistently return a 2-tuple when the work is complete.

    Written by the indexing model from the issue text.

    Assessment

    Tech stack
    python
    Domain
    api, backend
    Issue type
    Feature
    Difficulty
    4/5
    Estimated time
    3-5 days
    Activity status
    Stale
    Clarity
    Mostly clear
    Newbie friendliness
    25/100

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.