Allow using decimals as arguments to `timedelta`

Open
#58,470 22 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start by reviewing the attached timedelta_decimal.patch and the Library (Lib) implementation it targets, then read the linked issue discussion for the intended Decimal behavior. Done means Decimal values are accepted as timedelta arguments with behavior matching the agreed requirements and the relevant library tests pass.

Written by the indexing model from the issue text.

Description

stdlib type-feature
BPO 14262
Nosy @rhettinger, @facundobatista, @mdickinson, @abalkin, @vstinner, @cool-RR
Files
  • timedelta_decimal.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 = None
    closed_at = None
    created_at = <Date 2012-03-12.13:13:07.505>
    labels = ['type-feature', 'library']
    title = 'Allow using decimals as arguments to `timedelta`'
    updated_at = <Date 2014-10-14.15:00:08.731>
    user = 'https://github.com/cool-RR'
    

    bugs.python.org fields:

    activity = <Date 2014-10-14.15:00:08.731>
    actor = 'skrah'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2012-03-12.13:13:07.505>
    creator = 'cool-RR'
    dependencies = []
    files = ['24820']
    hgrepos = []
    issue_num = 14262
    keywords = ['patch']
    message_count = 22.0
    messages = ['155449', '155583', '155587', '155602', '155609', '155627', '156371', '156393', '156396', '156398', '170746', '170748', '170749', '170750', '170751', '170753', '170754', '170758', '170769', '170771', '170773', '170776']
    nosy_count = 7.0
    nosy_names = ['rhettinger', 'facundobatista', 'mark.dickinson', 'belopolsky', 'vstinner', 'cool-RR', 'Alexander.Belopolsky']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue14262'
    versions = ['Python 3.4']
    

    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.