summaryrefslogtreecommitdiffstats
path: root/Python/fileutils.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-07-05 20:25:35 (GMT)
committerGitHub <noreply@github.com>2024-07-05 20:25:35 (GMT)
commitbc4cd91aef6a860ef911788caef5d11834c7cd2f (patch)
tree658bfce9afa5d3ecc74503d10b4ca209d79ea0c4 /Python/fileutils.c
parent3c3f9a209f302599fdd1b6f3f6315028e1b4fcda (diff)
downloadcpython-bc4cd91aef6a860ef911788caef5d11834c7cd2f.zip
cpython-bc4cd91aef6a860ef911788caef5d11834c7cd2f.tar.gz
cpython-bc4cd91aef6a860ef911788caef5d11834c7cd2f.tar.bz2
[3.13] Update example of str.split, bytes.split (GH-121287) (#121415)
Update example of str.split, bytes.split (GH-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. (cherry picked from commit 892e3a1b708391cb43517a141f9b9712e047b8a4) Co-authored-by: Yuxin Wu <ppwwyyxxc@gmail.com> Co-authored-by: Yuxin Wu <ppwwyyxx@users.noreply.github.com>
Diffstat (limited to 'Python/fileutils.c')
0 files changed, 0 insertions, 0 deletions