Efficient bits manipulation in Python

Li Wang li.wang.d at gmail.com
Tue Apr 28 13:26:32 CEST 2009


I have a bit-code :'1011011', how can I reverse it to '1101101'?

Another question is I know how to transform the string '110' into
integer 6, does anyone know how to transform integer 6 to a string

Thank you very much:)

Time is all we have
and you may find one day
you have less than you think

More information about the Python-list mailing list