On 2006-06-01, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >>> does anyone know a module or something to convert numbers like >>> integer to binary format ? >> >> They _are_ in binary format. >> >> > for example I want to convert number 7 to 0111 so I can make some >> > bitwise operations... >> >> Just do it: >> >> >>> 7 & 3 >> 3 >> >>> 7 | 8 >> 15 > > I know I can do that but I need to operate in every bit separeted.
Sorry, I've no clue what that means. -- Grant Edwards grante Yow! Now KEN is having at a MENTAL CRISIS beacuse visi.com his "R.V." PAYMENTS are OVER-DUE!! -- http://mail.python.org/mailman/listinfo/python-list