python / python/cpython

datetime.strptime not accepts single-digit months and days for %m and %d

Open
#78,122 7 comments 0 reactions 1 assignee View on GitHub

@serhiy-storchaka is already working on this.

Since Oct 9, 2024.

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

Description

BPO 33941
Nosy @abalkin, @crwilcox, @pganssle

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-06-22.13:03:38.217>
labels = ['type-bug', 'library']
title = 'datetime.strptime not able to recognize invalid date formats'
updated_at = <Date 2018-07-05.15:00:50.065>
user = 'https://bugs.python.org/RaghunathLingutla'

bugs.python.org fields:

activity = <Date 2018-07-05.15:00:50.065>
actor = 'p-ganssle'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2018-06-22.13:03:38.217>
creator = 'Raghunath Lingutla'
dependencies = []
files = []
hgrepos = []
issue_num = 33941
keywords = []
message_count = 3.0
messages = ['320233', '320245', '320291']
nosy_count = 4.0
nosy_names = ['belopolsky', 'crwilcox', 'p-ganssle', 'Raghunath Lingutla']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue33941'
versions = ['Python 2.7', 'Python 3.6']

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.