Xiang Zhang added the comment: > I think it is better to change the type of p to unsigned char. Good advice. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue30242> _______________________________________