code: def print_code_table(self, out=sys.stdout):
          
          out.write(u'bits  code       (value)  symbol\n')
          for symbol, (bitsize, value) in sorted(self._table.items()):
              out.write(u'{b:4d}  {c:10} ({v:5d})  {s!r}\n'.format(
                  b=bitsize, v=value, s=symbol, c=bin(value)[2:].rjust(bitsize, '0')
              ))
docs: Print code table overview