This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author calestyo
Recipients Douglas.Alan, abarnert, akira, amaury.forgeotdarc, benjamin.peterson, calestyo, eric.araujo, facundobatista, georg.brandl, jcon, maggyero, martin.panter, ncoghlan, nessus42, pconnell, pitrou, r.david.murray, ralph.corderoy, rhettinger, wolma, ysj.ray
Date 2021-02-23.06:04:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1614060254.9.0.628895216299.issue1152248@roundup.psfhosted.org>
In-reply-to
Content
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''.
History
Date User Action Args
2021-02-23 06:04:15calestyosetrecipients: + 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:14calestyosetmessageid: <1614060254.9.0.628895216299.issue1152248@roundup.psfhosted.org>
2021-02-23 06:04:14calestyolinkissue1152248 messages
2021-02-23 06:04:14calestyocreate