binary numbers

Brad Tilley bradtilley at gmail.com
Tue Oct 5 17:55:28 EDT 2004


How can I specify that a number be represented in binary format when 
passing it to a function? I'm working with the Windows registry and 
REG_BINARY values expect numbers in binary form...

This would be nice:

import binary
x = binary(5)

Any tips???

Thanks,
Brad



More information about the Python-list mailing list