Message323856
| Author |
p-ganssle |
| Recipients |
belopolsky, izbyshev, p-ganssle, serhiy.storchaka |
| Date |
2018年08月22日.00:00:12 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1534896012.78.0.56676864532.issue34454@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> Note that technically a difference between C and Python implementation of fromisoformat() will still remain: if a part of the input string before or after the separator contains surrogates, the C code will throw a UnicodeEncodeError while the Python code -- ValueError. But since the former error is a subclass of the latter, I guess it's OK, what do you think?
I think the fact that the unicode string is decoded is an implementation detail. I would suggest swallowing the decode error and raising a standard ValueError. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2018年08月22日 00:00:13 | p-ganssle | set | recipients:
+ p-ganssle, belopolsky, serhiy.storchaka, izbyshev |
| 2018年08月22日 00:00:12 | p-ganssle | set | messageid: <1534896012.78.0.56676864532.issue34454@psf.upfronthosting.co.za> |
| 2018年08月22日 00:00:12 | p-ganssle | link | issue34454 messages |
| 2018年08月22日 00:00:12 | p-ganssle | create |
|