Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.10 requires PY_SSIZE_T_CLEAN macro in # format #20

Open
arimakai opened this issue Feb 16, 2024 · 0 comments
Open

Python 3.10 requires PY_SSIZE_T_CLEAN macro in # format #20

arimakai opened this issue Feb 16, 2024 · 0 comments

Comments

@arimakai
Copy link

Dear,

I found error in python3.10

SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats

Reference by this
https://peps.python.org/pep-0353/
https://bugs.python.org/issue40943

After I add

#define PY_SSIZE_T_CLEAN 1

In the first line of 'src/pyi2c.c,' the library can work. Could you please review the source code again to ensure that other variables are also working fine?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant