Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update example of str.split, bytes.split #121287

Merged
merged 1 commit into from
Jul 5, 2024

Commits on Jul 2, 2024

  1. Update example of str.split, bytes.split

    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.
    ppwwyyxx committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    5678aa9 View commit details
    Browse the repository at this point in the history