Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Do binary files contain more 1s or 0s?.
One is the hex conversion. Compare:
>>> bin(int(binascii.hexlify(b"\x05"), 16))[2:] '101'
>>> bin(b"\x05"[0])[2:] '101'
There are no comments on this comment yet.
One is the hex conversion. Compare:
versus just: Secondly, the code should just count the 1 bits; there is no need for a count of zeros.