Are there any canned Python methods to convert an Integer (or Long) into a binary string in Python?
There are a myriad of dec2bin() functions out on Google... But I
If you're looking for bin() as an equivalent to hex(), it was added in python 2.6.
hex()
Example:
>>> bin(10) '0b1010'