Paul Ganssle <p.gans...@gmail.com> added the comment:
> 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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34454> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com