python / python/cpython

`strptime`: `%U/%W` are not used without day of week

Open
#74,985 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

stdlib type-feature
Dominant language
Python
Stars
77.2k
Forks
36k
PR merge metrics
PR metrics pending

Description

BPO 30802
Nosy @musically-ut, @matheusportela, @pganssle, @nooperpudd, @tirkarthi, @serge-bon
PRs
  • python/cpython#11594
  • python/cpython#11594
  • python/cpython#11594
  • 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 2017-06-29.08:58:08.577>
    labels = ['3.7', '3.8', 'type-bug', 'library']
    title = "datetime.datetime.strptime('200722', '%Y%U')"
    updated_at = <Date 2019-05-22.13:43:18.013>
    user = 'https://github.com/nooperpudd'
    

    bugs.python.org fields:

    activity = <Date 2019-05-22.13:43:18.013>
    actor = 'p-ganssle'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2017-06-29.08:58:08.577>
    creator = 'winton'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 30802
    keywords = ['patch', 'patch', 'patch']
    message_count = 11.0
    messages = ['297265', '297266', '297274', '297714', '298840', '299114', '299124', '299446', '332399', '332400', '332456']
    nosy_count = 7.0
    nosy_names = ['mrabarnett', 'musically_ut', 'matheus.v.portela', 'p-ganssle', 'winton', 'xtreak', 'serge-bon']
    pr_nums = ['11594', '11594', '11594']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue30802'
    versions = ['Python 2.7', 'Python 3.7', '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

    Start with datetime.datetime.strptime and the %U/%W directives described in the issue, then review existing PR #11594 and the related discussion. Done means the behavior for inputs without a day of week is resolved and the relevant CPython tests reflect the agreed result.

    Written by the indexing model from the issue text.

    Assessment

    Tech stack
    python
    Domain
    backend
    Issue type
    Bug
    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.