lbates at syscononline.com
Wed Oct 6 00:35:07 CEST 2004
Brad Tilley wrote:
> 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???
Integers are stored in memory as binary.
stores 5 in x in binary form.
More information about the Python-list