News for hackers. Stuff that matters.
Re:Low Level Bit Hacks You Absolutely Must Know by Keyframe on Tuesday June 30, 2009 @09:35PM (#681939)
you can also print binary in python like so:

  >>>print bin(12)
  0b1100
  >>>
Re:Low Level Bit Hacks You Absolutely Must Know by pkrumins on Wednesday July 01, 2009 @02:36AM (#682198)
Only Python 2.6 I think, and it does not print negatives very nicely (it prints bin(-x) = -bin(x), instead of some number representation).
Re:Low Level Bit Hacks You Absolutely Must Know by Keyframe on Wednesday July 01, 2009 @10:35AM (#682685)
yes, you are right python >2.6 only
Re:Low Level Bit Hacks You Absolutely Must Know by tetha on Wednesday July 01, 2009 @03:27AM (#682239)
The best tool I know to do such things is i (debian package iprint):

tetha@dev-server:~$ i 12 12 0xC 014 0b1100 '\f'