-
-
Couldn't load subscription status.
- Fork 34
Closed
Description
Hello Python team, I believe we have met countless times in the main repository.
When I port libfdt to Python, I noticed the Py_T_* series of macros, which are only available after version 3.12. Prior to this, the T_* series was used. Can we add compatibility for these basic constants in a compatibility layer, so they are always defined as Py_T_* in supported versions?
If they are defined elsewhere, please point out my mistakes. Thank you, everyone :)
From my repo
#if PY_VERSION_HEX >= 0x03120000
# include <descrobject.h>
#endif
#if PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x03120000
# include <structmember.h>
/** member type */
# ifndef Py_T_UINT
# define Py_T_UINT T_UINT
# endif
# ifndef Py_T_INT
# define Py_T_INT T_INT
# endif
/** flags */
# ifndef Py_READONLY
# define Py_READONLY READONLY
# endif
#endif
(If the request is granted, I hope to complete this historic moment.)
Metadata
Metadata
Assignees
Labels
No labels