Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on A Little Story About the `yes` Unix Command. Parent comment
import sys s = b'y\n' * 1024 write = sys.stdout.buffer.write while True: write(s) # 1.12GiB/s
The Python3 docs say to "use the underlying binary buffer object" when reading or writing binary data.
https://docs.python.org/3/library/sys.html
There are no comments on this comment yet.
The Python3 docs say to "use the underlying binary buffer object" when reading or writing binary data.
https://docs.python.org/3/library/sys.html