diff options
author | Yuxin Wu <ppwwyyxxc@gmail.com> | 2024-07-05 20:08:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-05 20:08:29 (GMT) |
commit | 892e3a1b708391cb43517a141f9b9712e047b8a4 (patch) | |
tree | 81cd4c0e3c60cb117bc29a56876a46e2b9d9715b /Lib/test/test_pyrepl/test_pyrepl.py | |
parent | 8ecb8962e33930dd56d72004a59336d4b00fce22 (diff) | |
download | cpython-892e3a1b708391cb43517a141f9b9712e047b8a4.zip cpython-892e3a1b708391cb43517a141f9b9712e047b8a4.tar.gz cpython-892e3a1b708391cb43517a141f9b9712e047b8a4.tar.bz2 |
Update example of str.split, bytes.split (#121287)
In `{str,bytes}.strip(chars)`, multiple characters are not treated as a
prefix/suffix, but as individual characters. This may make users confuse
whether `split` has similar behavior.
Users may incorrectly expect that
`'Good morning, John.'.split(', .') == ['Good', 'morning', 'John']`
Adding a bit of clarification in the doc.
Co-authored-by: Yuxin Wu <ppwwyyxx@users.noreply.github.com>
Diffstat (limited to 'Lib/test/test_pyrepl/test_pyrepl.py')
0 files changed, 0 insertions, 0 deletions