Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

It looks to me that rejecting the null character is just an implementation 
artifact. 0 is used both as signalling value for "not set" character parameter 
and as the end-of-line character in the state automata. We can use different 
values outside of the range of Unicode characters (0-0x10ffff). It will 
automatically enable support of null characters.

----------
versions: +Python 3.11 -Python 3.6, Python 3.7, Python 3.8

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

Reply via email to