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

2014-12-31 Thread Tomasz Ryczkowski
Changes by Tomasz Ryczkowski tomaszr...@gmail.com: -- nosy: +torm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23136 ___ ___ Python-bugs-list

[issue23134] datetime.strptime at the turn of the year

2014-12-30 Thread Tomasz Ryczkowski
New submission from Tomasz Ryczkowski: I've found wrong behaviour datetime.strptim function at the turn of the year. I've created datetime object base on the week number (%W), year (%Y) and day of week (%w). The date for Tuesday in the first week in 2015 is wrong: from datetime import