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

anon report at bugs.python.org
Thu Oct 2 12:26:26 CEST 2014


anon added the comment:

Giving it more thought: to get the int we'd need something like int(x.bits[2:][4:]) which seems quite annoying for the general case of int(x.bits[0:52]). So actually I'm not sure that views would add any more abstraction for their extra complexity without becoming a bit unwieldy.

----------

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


More information about the Python-bugs-list mailing list