gh-144330: Initialize staticmethod/classmethod callables in tp_new#144364
Closed
Aniketsy wants to merge 32 commits intopython:mainfrom
Closed
gh-144330: Initialize staticmethod/classmethod callables in tp_new#144364Aniketsy wants to merge 32 commits intopython:mainfrom
Aniketsy wants to merge 32 commits intopython:mainfrom
Conversation
Member
|
You need to update your branch to fix the CI, it is currently incompatible. |
vstinner
reviewed
Feb 3, 2026
| cm->cm_callable = Py_NewRef(Py_None); | ||
| cm->cm_dict = NULL; | ||
| return (PyObject *)cm; | ||
| } |
Member
There was a problem hiding this comment.
Move cm_new() before PyClassMethod_Type, so you don't need to declare it in advance (remove forward declaration line 1558).
Objects/funcobject.c
Outdated
| sm->sm_callable = Py_NewRef(Py_None); | ||
| sm->sm_dict = NULL; | ||
| return (PyObject *)sm; | ||
| } |
Member
There was a problem hiding this comment.
Move sm_new() before PyStaticMethod_Type.
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
Contributor
Author
|
@vstinner Thanks for the review, i'll update as per suggestions. |
Member
|
You didn't move cm_new() and sm_new(). |
vstinner
reviewed
Feb 3, 2026
Contributor
Author
sorry , I mean i will update, just need some time Thanks! |
Co-authored-by: Victor Stinner <vstinner@python.org>
…rge offset in struct.pack_into() (pythonGH-143905)
…15232) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Victor Stinner <vstinner@python.org>
…rs specified (pythonGH-144324) Treat "+" and "/" like other characters not in the alternative Base64 alphabet when both altchars and ignorechars are specified. E.g. discard them if they are not in altchars but are in ignorechars, and set error if they are not in altchars and not in ignorechars. Only emit warnings if ignorechars is not specified.
…pythonGH-144391) Revert "pythongh-144145: Track nullness of properties in the Tier 2 JIT optimizer (pythonGH-144122)" This reverts commit 1dc12b2.
…onGH-144183) - Pass -v to pip, so compiler output is visible - Move the call ``spam.system(3)`` up so that error handling is tested right after it's added - Use `PyUnicode_AsUTF8AndSize` as `PyUnicode_AsUTF8` is not in the Limited API. - Add a footnote about embedded NULs.
…a re-entrant __index__ (pythonGH-142713)
Contributor
Author
|
@vstinner Sorry I guess i messed up, I rebased it as there were merge conflict |
Member
|
This looks like a lot of unrelated changes. Please scope the patch to the declared PR title. |
Contributor
Author
|
Closing this, will re-open , new one |
Contributor
Author
|
@webknjaz sorry, yes |
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
Add this suggestion to a batch that can be applied as a single commit.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.Add this suggestion to a batch that can be applied as a single commit.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.Suggestion cannot be applied right now. Please check back later.
#144330