[issue10827] Functions in time module should support year < 1900 when accept2dyear = 0
Alexander Belopolsky
report at bugs.python.org
Wed Jan 5 17:50:56 CET 2011
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
Attached patch, issue10827b.diff, fixes the accept2dyear = True issue and removes unnecessary struct_time to tuple conversion, but otherwise does not change the Y2K behavior. The code handling accept2dyear is refactored so that it is now easy to accept y < 1900 in accept2dyear = False mode. The patch also includes unit tests.
----------
stage: -> commit review
Added file: http://bugs.python.org/file20275/issue10827b.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10827>
_______________________________________
More information about the Python-bugs-list
mailing list