Skip to content

Fix erroneous TypeError from all bindings using the s# code. #288

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

Merged
merged 1 commit into from
Apr 28, 2024

Conversation

Hoikas
Copy link
Member

@Hoikas Hoikas commented Apr 28, 2024

As of Python 3.10, all argument codes with the # suffix are disabled by default. To re-enable them, we must define PY_SSIZE_T_CLEAN and change all of the types from int to Py_ssize_t. In Python 3.9 and lower, # arguments expect the int data type by default. The macro is backwards compatible.

As of Python 3.10, all argument codes with the `#` suffix are disabled
by default. To re-enable them, we must define `PY_SSIZE_T_CLEAN` and
change all of the types from `int` to `Py_ssize_t`. In Python 3.9 and
lower, `#` arguments expect the `int` data type by default. The macro is
backwards compatible.
@zrax zrax merged commit 1f56a8e into H-uru:master Apr 28, 2024
8 checks passed
@Hoikas Hoikas deleted the fix_s# branch April 28, 2024 22:18
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

Successfully merging this pull request may close these issues.

2 participants