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 patrick.vrijlandt
Recipients patrick.vrijlandt
Date 2011-12-29.09:04:16
SpamBayes Score 3.0175307e-12
Marked as misclassified No
Message-id <[email protected]>
In-reply-to
Content
This causes a crash in python 3.2.2 and 3.2, but not in 2.7.2

C:\Python32>python
Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import datetime
>>> datetime.datetime(1899,12,31).strftime("%y")

The crash happens with %y but not with %Y.
The crash happens with any year < 1900.
On 2.7.2 a ValueError is raised because strftime requires year >= 1900. This is what IMHO should happen (and would have saved me a lot of time)
History
Date User Action Args
2011-12-29 09:04:18patrick.vrijlandtsetrecipients: + patrick.vrijlandt
2011-12-29 09:04:17patrick.vrijlandtsetmessageid: <[email protected]>
2011-12-29 09:04:17patrick.vrijlandtlinkissue13674 messages
2011-12-29 09:04:16patrick.vrijlandtcreate