anon added the comment:

I didn't really consider floats. bit_length() is only provided to ints for 
example.

I think a better solution to pick apart floats would be a function similar to 
math.frexp, if it isn't already sufficient. float.bits_at(pos, width) seems a 
worse solution because the position of each bit would be arbitrary. But I have 
no major objection against it being extended to floats.

----------

_______________________________________
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

Reply via email to