Sitelet https://github.com/python/cpython/issues/94185
Skip to content

PyObject_New breaks by the commit 7ad6f74fcf9db1ccfeaf0986064870d8d3887300 #94185

Description

@trcrsired

/usr/local/include/python3.12/objimpl.h:134:46: error: expected ')' before '_PyObject_New'
134 | #define PyObject_New(type, typeobj) ((type *)_PyObject_New(typeobj))
| ~ ^~~~~~~~~~~~~
7ad6f74

This is not working for g++ 13

Activity

  1. vstinner commented on Jun 24, 2022

    @vstinner
    Member

    Oh no, writing correct macros is so complicated :-( I wrote PR #94234 to fix this issue.

    cc @erlend-aasland

  2. kumaraditya303 commented on Jun 26, 2022

    @kumaraditya303
    Contributor

    Fixed by #94234

  3. vstinner commented on Jun 26, 2022

    @vstinner
    Member

    Thanks for reporting the issue! It's great that you catched the issue early, so it could be fixed quickly ;-) I added unit tests to prevent future similar regressions. Sadly, the C API is still not fully tested, as you can see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions