Skip to content

gh-111178: Change Argument Clinic signature for @classmethod - #131157

Merged
vstinner merged 2 commits into
python:mainfrom
vstinner:clinic_self
Mar 12, 2025
Merged

vstinner merged 2 commits into
python:mainfrom
vstinner:clinic_self

Conversation

@vstinner

@vstinner vstinner commented Mar 12, 2025 •

Copy link
Copy Markdown
Member

Use "PyObject*", instead of "PyTypeObject*", for @classmethod functions to fix an undefined behavior.

Use "PyObject*", instead of "PyTypeObject*", for @classmethod
functions to fix an undefined behavior.
@picnixz

picnixz commented Mar 12, 2025

Copy link
Copy Markdown
Member

@vstinner I would advise rewriting the commit and use `@classmethod` so that github does not automatically mention them

@vstinner vstinner changed the title gh-111178: Change Argument Clinic signature for @classmethod Mar 12, 2025
@vstinner
vstinner merged commit 061da44 into python:main Mar 12, 2025
@vstinner
vstinner deleted the clinic_self branch March 12, 2025 16:42
vstinner added a commit to vstinner/cpython that referenced this pull request Mar 12, 2025
…python#131157)

Use "PyObject*", instead of "void*", for `@staticmethod` functions to
fix an undefined behavior.
vstinner added a commit that referenced this pull request Mar 13, 2025
) (#131159)

Use "PyObject*", instead of "void*", for `@staticmethod` functions to
fix an undefined behavior.
plashchynski pushed a commit to plashchynski/cpython that referenced this pull request Mar 17, 2025
…ython#131157)

Use "PyObject*", instead of "PyTypeObject*", for `@classmethod`
functions to fix an undefined behavior.
plashchynski pushed a commit to plashchynski/cpython that referenced this pull request Mar 17, 2025
…python#131157) (python#131159)

Use "PyObject*", instead of "void*", for `@staticmethod` functions to
fix an undefined behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants