Message307616
> The other difference is Mattieu guarantees ValueError for invalid input strings, which I think is good.
I forgot to address this - but I don't think this is a difference in approaches. If you pass `None` or an int or something, the problem is with the type, not the value, so at a minimum you're looking at TypeError and ValueError - and those are the only exceptions raised in my patch.
(I'll note that my patch does not accept bytes, though this is something of an artificial limitation, since the patch makes use of the fact that all valid isoformat() strings will contain at most exactly 1 non-ascii character in position 10, so we could easily work around this, but I think the trend for CPython is to avoid blurring the lines between bytes and str rather than encouraging their interchangeable use.) |
|
Date |
User |
Action |
Args |
2017-12-05 02:17:04 | p-ganssle | set | recipients:
+ p-ganssle, barry, jcea, cben, roysmith, ncoghlan, belopolsky, nagle, vstinner, jwilk, mcepl, eric.araujo, Arfrever, r.david.murray, davydov, cvrebert, karlcow, SilentGhost, Elvis.Pranskevichus, perey, flying sheep, mihaic, aymeric.augustin, Roman.Evstifeev, berker.peksag, martin.panter, piotr.dobrogost, kirpit, Anders.Hovmöller, jstasiak, Eric.Hanchrow, deronnax, pbryan, sirex, larsonreever |
2017-12-05 02:17:04 | p-ganssle | set | messageid: <1512440224.08.0.213398074469.issue15873@psf.upfronthosting.co.za> |
2017-12-05 02:17:04 | p-ganssle | link | issue15873 messages |
2017-12-05 02:17:03 | p-ganssle | create | |
|