Message387552
| 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"0円foo0円barbaz0円0円abcd".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"0円foo0円barbaz0円".split(b"0円")
[b'', b'foo', b'barbaz', b'']
>>> b"0円abcd".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: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 |
|