STINNER Victor added the comment:

> If there are no objections I'll commit the patch soon.

Replacing TypeError with ValueError is fine. TypeError was a bad choice. If an 
application relies on TypeError to check for null character, it's easy to 
replace "except TypeError:" with "except (TypeError, ValueError):" to stay 
compatible with Python < 3.5.

Instead of "NUL character" (and "NUL byte), I had prefer "null character" (and 
"null byte"):
http://en.wikipedia.org/wiki/Null_character

I talking about the error message because you changed it in a few places.

----------
nosy: +haypo

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22215>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to