STINNER Victor added the comment:

> LGTM, please commit.

Ok, done.

> Why the behavior is vary in release and debug builds?

See _PyBytesWriter_Alloc(): the code is designed to detect bugs earlier in 
debug mode, it only uses 10 bytes of the "small buffer" (buffer allocated on 
the stack) rather than the full size of the smaller buffer (512 bytes).

It looks like this hack helped to find a real bug :-)

----------

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

Reply via email to