STINNER Victor <victor.stin...@gmail.com> added the comment:

2.100 -    v = PyUnicode_DecodeASCII(p, &buffer[sz] - p, NULL);
...
   2.104 +    assert(p == PyUnicode_1BYTE_DATA(v));
   2.105      return v;
   2.106  }

You may call assert(_PyUnicode_CheckConsistency(v, 1)) to ensure that the newly 
created string is "consistent" (see the function for the details).

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

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

Reply via email to