Author Erik Cederstrand
Recipients AaronR, Alex.Willmer, BreamoreBoy, Erik Cederstrand, Erik.Cederstrand, aganders3, belopolsky, berker.peksag, r.david.murray, serhiy.storchaka, tim.peters
Date 2015-04-21.09:11:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1429607518.58.0.22878434647.issue12006@psf.upfronthosting.co.za>
In-reply-to
Content
I think POLA would be to raise ValueError on time.strptime('2015', '%G') and other situations that don't make sense or are ambiguous.

That, or reproduce the bugs that the native OS strptime() implementation has. I got the %G, %V, and %u directives accepted for the next POSIX spec (http://austingroupbugs.net/view.php?id=879). But it will be years before operating systems catch up, so I would opt for the ValueError approach instead.
History
Date User Action Args
2015-04-21 09:11:58Erik Cederstrandsetrecipients: + Erik Cederstrand, tim.peters, belopolsky, r.david.murray, BreamoreBoy, Erik.Cederstrand, AaronR, aganders3, berker.peksag, serhiy.storchaka, Alex.Willmer
2015-04-21 09:11:58Erik Cederstrandsetmessageid: <1429607518.58.0.22878434647.issue12006@psf.upfronthosting.co.za>
2015-04-21 09:11:58Erik Cederstrandlinkissue12006 messages
2015-04-21 09:11:58Erik Cederstrandcreate