[issue19915] int.bit_at(n) - Accessing a single bit in O(1)
Mark Dickinson
report at bugs.python.org
Sat Dec 7 14:08:00 CET 2013
Mark Dickinson added the comment:
> I'd rather see `i.bits_at(pos, width=1)`
Me too. Extracting sign, exponent and significand fields from the binary representation of a float is at least one thing I'd use this for.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19915>
_______________________________________
More information about the Python-bugs-list
mailing list