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 p-ganssle
Recipients Anders.Hovmöller, Arfrever, Elvis.Pranskevichus, Eric.Hanchrow, Roman.Evstifeev, SilentGhost, aymeric.augustin, barry, belopolsky, berker.peksag, cben, cvrebert, davydov, deronnax, eric.araujo, flying sheep, jcea, jstasiak, jwilk, karlcow, kirpit, larsonreever, martin.panter, mcepl, mihaic, nagle, ncoghlan, p-ganssle, pbryan, perey, piotr.dobrogost, r.david.murray, roysmith, sirex, vstinner
Date 2017-12-05.02:17:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1512440224.08.0.213398074469.issue15873@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.)
History
Date User Action Args
2017-12-05 02:17:04p-gansslesetrecipients: + 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:04p-gansslesetmessageid: <1512440224.08.0.213398074469.issue15873@psf.upfronthosting.co.za>
2017-12-05 02:17:04p-gansslelinkissue15873 messages
2017-12-05 02:17:03p-gansslecreate