-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
bpo-40330: Fix utf-8 size check in ShareableList #19606
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
bpo-40330: Fix utf-8 size check in ShareableList #19606
Conversation
The item size must be checked after encoding to bytes, not before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly LGTM, I just have a minor suggestion for the tests.
@pitrou: Status check is done, and it's a success ✅ . |
Thanks @pitrou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8. |
Sorry, @pitrou, I could not cleanly backport this to |
Sorry @pitrou, I had trouble checking out the |
GH-19625 is a backport of this pull request to the 3.8 branch. |
The item size must be checked after encoding to bytes, not before. Automerge-Triggered-By: @pitrou. (cherry picked from commit eba9f61) Co-authored-by: Antoine Pitrou <[email protected]>
The item size must be checked after encoding to bytes, not before.
https://bugs.python.org/issue40330
Automerge-Triggered-By: @pitrou