[Tutor] Hex to Str - still an open issue

Jacob S. keridee at jayco.net
Sat Feb 5 05:30:19 CET 2005


> The binary value is the same as the hex value.
> The binary representation is 000111110100, but
> unfortunately Python doesn't support binary in
> its string formatting(although it does in int()!

Uh, question. Why not? It seems that all simple types should be included.
Since the computer stores it as binary, why shouldn't python be able to 
display a
string of it in binary? That seems to be a short coming that should be added 
to the
next release... IMHO of course.
Jacob Schmidt 



More information about the Tutor mailing list