<s>[INST] Python int to binary? 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 was hoping I could use a built-in function / library.
 [/INST] Python's string format method can take a format spec. 
>>> "{0:b}".format(10)
'1010'

Format spec docs for Python 2 
Format spec docs for Python 3
 </s>