Skip to content

PY_SSIZE_T_CLEAN not defined #52

@menschel

Description

@menschel

Hello, I ran into this issue after upgrading from Python 3.9 to Python 3.11 recently.

Apparently the MACRO PY_SSIZE_T_CLEAN must be defined in py3c.h before including python.h

https://docs.python.org/3/c-api/arg.html#strings-and-buffers

Otherwise it leads to
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats

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