This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients Erik.Cederstrand, Saimadhav.Heblikar, aganders3, belopolsky, jamercee, lemburg, serhiy.storchaka, torm
Date 2015-01-02.19:47:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1420228073.5.0.902774683039.issue23136@psf.upfronthosting.co.za>
In-reply-to
Content
Note that round-trip also fails in weeks 52-53.  For example,

>>> datetime.strptime('2014 53 6', '%Y %W %w')
datetime.datetime(2015, 1, 10, 0, 0)
>>> datetime.strptime('2014 53 6', '%Y %W %w').strftime('%Y %W %w')
'2015 01 6'

If we decide to make "2015 0 0" invalid for format '%Y %W %w', we should probably invalidate the entire week 53 in 2014 for consistency.  However, I don't think there are any C implementations that would have a problem with such dates.

Overall, I am inclined to accept Jim's solution for 3.5, but I am not sure about the maintenance branches.
History
Date User Action Args
2015-01-02 19:47:53belopolskysetrecipients: + belopolsky, lemburg, Erik.Cederstrand, aganders3, serhiy.storchaka, jamercee, Saimadhav.Heblikar, torm
2015-01-02 19:47:53belopolskysetmessageid: <1420228073.5.0.902774683039.issue23136@psf.upfronthosting.co.za>
2015-01-02 19:47:53belopolskylinkissue23136 messages
2015-01-02 19:47:53belopolskycreate