binary literal

superpollo user at example.net
Wed Jul 22 06:03:44 EDT 2009


hello clp.

i can insert a hex value for a character literal in a string:

 >>> stuff = "\x45"
 >>> print stuff
E
 >>>

can i do something like the above, but using a *binary* number? (e.g. 
00101101 instead of 45) ?

bye



More information about the Python-list mailing list