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 brett.cannon
Recipients
Date 2004-10-18.18:45:28
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=357491

Reopening to deal with the error Tony caught.

Tony, can you apply the included patch and verify it works for you okay?  
I added another if to track back a week if the calculation gets pushed 
past 366 days.  That does fix your error.  And if you can think of any 
other edge cases let me know.  I think that should cover everything.

And yes, the example for the OP is wrong::

>>> datetime.date(2004, 10, 11).strftime("%Y %U %w")
'2004 41 1'
History
Date User Action Args
2007-08-23 14:26:37adminlinkissue1045381 messages
2007-08-23 14:26:37admincreate