Message387552
btw, just something for the record:
I think the example given in msg109117 above is wrong:
Depending on the read size it will produce different results, given how split() works:
Imagine a byte sequence:
>>> b"\0foo\0barbaz\0\0abcd".split(b"\0")
[b'', b'foo', b'barbaz', b'', b'abcd']
Now the same sequence, however with a different read size (here a shorter one):
>>> b"\0foo\0barbaz\0".split(b"\0")
[b'', b'foo', b'barbaz', b'']
>>> b"\0abcd".split(b"\0")
[b'', b'abcd']
=> it's the same bytes, but in the 2nd case one get's an extra b''. |
|
Date |
User |
Action |
Args |
2021-02-23 06:04:15 | calestyo | set | recipients:
+ calestyo, georg.brandl, rhettinger, facundobatista, amaury.forgeotdarc, ncoghlan, pitrou, benjamin.peterson, nessus42, eric.araujo, ralph.corderoy, r.david.murray, ysj.ray, akira, Douglas.Alan, jcon, martin.panter, pconnell, wolma, abarnert, maggyero |
2021-02-23 06:04:14 | calestyo | set | messageid: <1614060254.9.0.628895216299.issue1152248@roundup.psfhosted.org> |
2021-02-23 06:04:14 | calestyo | link | issue1152248 messages |
2021-02-23 06:04:14 | calestyo | create | |
|