Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-128213: fast path for bytes creation from list and tuple#132590
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
gh-128213: fast path for bytes creation from list and tuple#132590
Conversation
…sing PyNumber_AsSsize_t; fixed indentation
Misc/NEWS.d/next/Core_and_Builtins/2024-12-24-08-44-49.gh-issue-128213.Y71jDi.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Misc/NEWS.d/next/Core_and_Builtins/2024-12-24-08-44-49.gh-issue-128213.Y71jDi.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Objects/bytesobject.c Outdated
/* Py_None as a fallback sentinel to the slow path */ | ||
bytes = Py_None; |
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.
/* Py_None as a fallback sentinel to the slow path */ | |
bytes=Py_None; | |
/* Py_None as a fallback sentinel to the slow path */ | |
Py_INCREF(Py_None); | |
bytes=Py_None; |
Is needed, no?
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.
Py_None is immortal, so not needed
Uh oh!
There was an error while loading.Please reload this page.
Continuation of#128214. This PR