Alex Gaynor <alex.gay...@gmail.com> added the comment: I think what you're looking for already exists: http://docs.python.org/dev/library/stdtypes.html#int.bit_length
---------- nosy: +alex _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15391> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com