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

This is a regression. Eryk's solution LGTM. Do you mind to create a PR?

But u"foo\0bar" is not terminated by two NULL characters. If this is used in 
real code, it contains a bug. And the getter of this field will return the 
string only to the first null character. More work is needed for making this 
more reliable.

----------

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

Reply via email to