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