Message154642
| Author |
belopolsky |
| Recipients |
Martin.Morrison, belopolsky, hynek, vstinner |
| Date |
2012年02月29日.15:48:41 |
| SpamBayes Score |
3.2465636e-07 |
| Marked as misclassified |
No |
| Message-id |
<1330530522.1.0.28036439577.issue14157@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
This strikes me as an implementation artifact. There is no reason for time.strptime() to validate date triplets. Applications that require valid dates can use datetime.strptime(). I suggest changing time.strptime() specification to match POSIX strptime(). My understanding is that POSIX only requires field by field range checking (%d range 01 to 31, %m range 01 to 12) and not full structure validation. This would be consistent with the way leap seconds are currently treated:
>>> time.strptime('60', '%S')[5]
60 |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年02月29日 15:48:42 | belopolsky | set | recipients:
+ belopolsky, vstinner, hynek, Martin.Morrison |
| 2012年02月29日 15:48:42 | belopolsky | set | messageid: <1330530522.1.0.28036439577.issue14157@psf.upfronthosting.co.za> |
| 2012年02月29日 15:48:41 | belopolsky | link | issue14157 messages |
| 2012年02月29日 15:48:41 | belopolsky | create |
|