[New-bugs-announce] [issue32267] strptime misparses offsets with microsecond format

Mario Corchero report at bugs.python.org
Sun Dec 10 05:12:00 EST 2017


New submission from Mario Corchero <mariocj89 at gmail.com>:

At the moment strptime misparses all microsecond specifications that do not have exactly 6 digits as it is just converted into an int and considered microsecond.

This bug was introduced with the implementation in bpo-31800

Example:
_strptime._strptime("+01:30:30.001", "%z") == _strptime._strptime("+01:30:30.000001", "%z")

----------
components: Library (Lib)
messages: 307952
nosy: mariocj89
priority: normal
severity: normal
status: open
title: strptime misparses offsets with microsecond format
type: behavior
versions: Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32267>
_______________________________________


More information about the New-bugs-announce mailing list