STINNER Victor <victor.stinner at haypocalc.com> added the comment: Ooops, you're right! (15).numbits() -> 4 and (16).numbits() -> 5. I'm tired. _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue3439> _______________________________________