anon added the comment: I think the case where i is negative can be handled by
bits_at(i, pos, width) = bits_at(~i, pos, width) ^ ((1 << width) - 1) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19915> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com