Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
The fast method to check if the value is a power of two: not value & (value - 1) ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38045> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com