Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add compatibility to Py_T_* #125

Closed
Closed
@rruuaanng

Description

@rruuaanng

Hello Python team, I believe we have met countless times in the main repository.

When I port libfdt to Python, I noticed thePy_T_* series of macros, which are only available after version 3.12. Prior to this, theT_* series was used. Can we add compatibility for these basic constants in a compatibility layer, so they are always defined asPy_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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp