jrwren | TIL: xxd does binary with -b... verify bit patterns are what you think they are: `echo 0xaa | xxd -r | xxd -b` | 15:22 |
---|---|---|
jrwren | whew, 170 is a magic number. | 15:22 |
cmaloney | fun fun | 15:42 |
jrwren | dear python... i hate you. https://github.com/python/cpython/blob/2.7/Objects/fileobject.c#L1105 | 21:06 |
jrwren | so efficient! https://github.com/python/cpython/blob/2.7/Objects/fileobject.c#L2886 | 21:06 |
cmaloney | Is that still true in Python3? | 21:53 |
jrwren | probably something similar. | 22:37 |
jrwren | actually, that efficient comment was stupid by me. It is fine. | 22:37 |
jrwren | but the newline behavior with read() is still a little weird IMO | 22:38 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!