Serhiy Storchaka added the comment: What if just add " & 0xFFFFFFFF"? ---------- nosy: +serhiy.storchaka versions: +Python 3.4 _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue12848> _______________________________________