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

Maciej Szulik report at bugs.python.org
Sat Dec 21 00:28:20 CET 2013


Maciej Szulik added the comment:

I'm attaching merged and fixed patch (issue1100942_full.patch). Though during testing I found one issue with the patch: during checking for time part in date class I'm using (in _datetimemodule.c->date_strptime) DATE_GET_HOUR etc, but when given time parts are 0's then the test fails. Should I leave the patch as is, because possibility for 0's is very low or should I check the format string for time parts existence? Any further advice is appreciated.

----------
Added file: http://bugs.python.org/file33240/issue1100942_full.patch

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


More information about the Python-bugs-list mailing list