-
-
Couldn't load subscription status.
- Fork 33.2k
Closed
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-C-APItype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
In object.h, I believe
#define Py_RETURN_NOTIMPLEMENTED return Py_NOTIMPLEMENTEDshould be
#if defined(Py_LIMITED_API) && Py_LIMITED_API+0 < 0x030c0000
# define Py_RETURN_NOTIMPLEMENTED return Py_NewRef(Py_NOTIMPLEMENTED)
#else
# define Py_RETURN_NOTIMPLEMENTED return Py_NOTIMPLEMENTEDand Py_NotImplemented should add Changed in version 3.12: Py_NOTIMPLEMENTED is immortal.
and Py_RETURN_NOTIMPLEMENTED should say Return Py_NotImplemented from a function. without saying it creates a new strong reference.
CPython versions tested on:
3.14
Operating systems tested on:
Linux
Linked PRs
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-C-APItype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error