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