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

Port to Python 3.11: use Py_SET_SIZE() #70

Merged
merged 1 commit into from
Dec 2, 2021
Merged

Port to Python 3.11: use Py_SET_SIZE() #70

merged 1 commit into from
Dec 2, 2021

Commits on Dec 2, 2021

  1. Port to Python 3.11: use Py_SET_SIZE()

    On Python 3.11, "Py_SIZE(result) = cSize;" fails with a compiler
    error. Since Python 3.9, Py_SET_SIZE() must be used instead:
    
    * https://docs.python.org/dev/whatsnew/3.11.html#c-api-changes
    * https://docs.python.org/dev/c-api/structures.html#c.Py_SIZE
    
    Add a copy of the pythoncapi_compat.h header file to get
    Py_SET_SIZE() on Python 3.8 and older:
    https://github.com/pythoncapi/pythoncapi_compat
    vstinner committed Dec 2, 2021
    Configuration menu
    Copy the full SHA
    4e9b8b0 View commit details
    Browse the repository at this point in the history