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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-117722: Fix Stream.readuntil with non-bytes buffer objects #117723

Merged
merged 2 commits into from
Apr 11, 2024

Commits on Apr 10, 2024

  1. Fix Stream.readuntil with non-bytes buffer objects

    PR python#16429 introduced support for an iterable of separators in
    Stream.readuntil. Since bytes-like types are themselves iterable, this
    can introduce ambiguities in deciding whether the argument is an
    iterator of separators or a singleton separator. In python#16429, only 'bytes'
    was considered a singleton, but this will break code that passes other
    buffer object types.
    
    Fix it by only supporting tuples rather than arbitrary iterables.
    
    Closes python#117722.
    bmerry committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    0bac378 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2024

  1. Configuration menu
    Copy the full SHA
    d616980 View commit details
    Browse the repository at this point in the history