En/na [EMAIL PROTECTED] ha escrit:
> does anyone know a module or something to convert numbers like integer
> to binary format ?

http://www.google.es/search?q=python+integer+to+binary

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/219300

> for example I want to convert number 7 to 0111 so I can make some
> bitwise operations...

python already provides some bitwise operators:

http://docs.python.org/ref/summary.html



HTH
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to