Not sure on this, but from the usage I've seen the first thing that often gets
done after a bin property is used is that the initial '0b' gets chopped off.
e.g.
>>> b += s.bin[2:]
I guess that if you are asking for bin then you already know that '001' is 3
bits, and if you ask for hex you know that it is 12 bits, so the identifier at
the start is a bit redundant.
Also when you create a bitstring you can use hex='001' or bin='001' without the
'0b' or '0x' so that's still consistent.
This will break some code (and lots of incidental documentation) so it's
definitely a version 3 feature, if it should get done at all.
Original issue reported on code.google.com by dr.scott...@gmail.com on 23 Jan 2011 at 7:38
Original issue reported on code.google.com by
dr.scott...@gmail.com
on 23 Jan 2011 at 7:38