[issue6641] datetime.strptime doesn't support %z format ?
Alexander Belopolsky
report at bugs.python.org
Fri Jun 18 17:43:39 CEST 2010
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
Reopening because the patch introduced a regression with respect to datetime subclasses:
>>> class DT(datetime): pass
...
>>> DT.strptime('', '')
datetime.datetime(1900, 1, 1, 0, 0)
a DT instance expected. Need tests covering subclasses.
----------
stage: committed/rejected -> unit test needed
status: closed -> open
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6641>
_______________________________________
More information about the Python-bugs-list
mailing list