[issue1100942] Add datetime.time.strptime and datetime.date.strptime

Maciej Szulik report at bugs.python.org
Fri Apr 4 07:45:52 CEST 2014


Maciej Szulik added the comment:

Alexander yes it's correct. It's checking for time part in date.strptime and for time part in time.strptime. The only problem I came into is that when passing 0 hours or 0 minutes into date.strptime it won't raise an exception, though doc explicitly says: "(...) ValueError is raised if the date string (...) the time part is nonzero". So I'm not sure whether this is enough or should I add additional checks if time part was set?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1100942>
_______________________________________


More information about the Python-bugs-list mailing list