converting decimal to binary

Raymond Hettinger vze4rx4y at verizon.net
Fri May 23 23:06:40 EDT 2003


> Sometimes I'd like binary literals too (making sense of a bitmask in hex or
> octal is a PITA -- only a computer weenie can look at 0xa and *see* an
> alternating pattern of 0s and 1s).

They cover this by seventh grade.  Unfortunately, only computer
weenies and I can remember this stuff in life's *very* few moments
where it matters.


Raymond Hettinger






More information about the Python-list mailing list