Message150323
| Author | patrick.vrijlandt |
|---|---|
| Recipients | patrick.vrijlandt |
| Date | 2011-12-29.09:04:16 |
| SpamBayes Score | 3.0175307e-12 |
| Marked as misclassified | No |
| Message-id | <1325149457.99.0.374098273588.issue13674@psf.upfronthosting.co.za> |
| 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:18 | patrick.vrijlandt | set | recipients: + patrick.vrijlandt |
| 2011-12-29 09:04:17 | patrick.vrijlandt | set | messageid: <1325149457.99.0.374098273588.issue13674@psf.upfronthosting.co.za> |
| 2011-12-29 09:04:17 | patrick.vrijlandt | link | issue13674 messages |
| 2011-12-29 09:04:16 | patrick.vrijlandt | create | |