summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pyrepl/test_pyrepl.py
diff options
context:
space:
mode:
authorYuxin Wu <ppwwyyxxc@gmail.com>2024-07-05 20:08:29 (GMT)
committerGitHub <noreply@github.com>2024-07-05 20:08:29 (GMT)
commit892e3a1b708391cb43517a141f9b9712e047b8a4 (patch)
tree81cd4c0e3c60cb117bc29a56876a46e2b9d9715b /Lib/test/test_pyrepl/test_pyrepl.py
parent8ecb8962e33930dd56d72004a59336d4b00fce22 (diff)
downloadcpython-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