[issue23136] BUG in how _strptime() handles week 0

Jim Carroll report at bugs.python.org
Wed Dec 31 18:35:28 CET 2014


Jim Carroll added the comment:

I understand. Actually, raising an exception would be perfectly acceptable as well (possibly even more desirable). 

I too experimented with the c-lib strptime() and discovered the negative values of tm_mday. These results are good too -- as they clearly show the number of days before the new year.

I don't think it's important for the python version to return the same values, but it would be better for it to at least be predictable.

----------

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


More information about the Python-bugs-list mailing list