{{ message }}
gh-128213: fast path for bytes creation from list and tuple#132590
Open
eendebakpt wants to merge 33 commits into
Open
gh-128213: fast path for bytes creation from list and tuple#132590eendebakpt wants to merge 33 commits into
eendebakpt wants to merge 33 commits into
Conversation
…sing PyNumber_AsSsize_t; fixed indentation
eendebakpt
commented
Jan 2, 2026
markshannon
reviewed
Jan 6, 2026
Member
|
Tuples are immutable, so why does creating a bytes object from a tuple require synchronization? |
Sorry, something went wrong.
Contributor
Author
Tuples indeed do not require synchronization. In this PR exact lists and tuples use the path (using synchronization with |
Sorry, something went wrong.
eendebakpt
commented
Feb 6, 2026
Contributor
Author
|
@markshannon Would you be able to continue reviewing this one? |
Sorry, something went wrong.
…rom-list-tuple-2 # Conflicts: # Objects/bytesobject.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.
Continuation of #128214. This PR
_PyList_GetItemRef).