News for hackers. Stuff that matters.
Re:Comprehensions in Python the Jedi way by tyingq on Sunday March 27, 2016 @04:05PM (#11371297)
Another alternative, works on both py2/3, assuming you replace bbs='000... with bbs=b'000...

  import struct

  result=''.join([chr(int(bits,2)) for bits in struct.unpack('8p'*(int(len(bbs)/8)),bbs)])

  print(result.replace(' ','')[::-1])

There are no comments on this comment yet.