STINNER Victor <victor.stin...@haypocalc.com> added the comment: Please don't promote this ugly code "len(bin(x).lstrip('-0b'))". It's not the best way to compute the number of bits... I prefer fredrikj's proposition (with // 2, few people understand >> 1).
_______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue3439> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com