Alexander Belopolsky added the comment: In a comment for #23134, Serhiy suggested that this may not be a bug (msg233215) because C strptime behavior for this case is undefined.
I disagree. On Mac OSX, strptime man page states: """ The %U and %W format specifiers accept any value within the range 00 to 53 without validat- ing against other values supplied (like month or day of the year, for example). """ And for the data="0 2015 2", format="%W %Y %w" case, it produces 2015-12-30 00:00:00 as expected. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23136> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com