[issue19915] int.bit_at(n) - Accessing a single bit in O(1)

Antoine Pitrou report at bugs.python.org
Mon Dec 9 17:49:04 CET 2013


Antoine Pitrou added the comment:

Should the signature be int.bits_at(start_bit, width) or int.bits_at(start_bit, end_bit+1) ? The latter would look more lire range() and slicing.

----------
nosy: +pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19915>
_______________________________________


More information about the Python-bugs-list mailing list