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 <rep...@bugs.python.org>
<http://bugs.python.org/issue1100942>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to