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

Drop Python 3.6 support for thread ident #493

Merged
merged 1 commit into from
Sep 9, 2022
Merged

Conversation

fantix
Copy link
Member

@fantix fantix commented Sep 9, 2022

Python 3.6 uses long for thread ident, while 3.7 uses unsigned long. We converted the Python integer to int64_t to support 3.6 (Cython enforces the integer is not overflowing), but it broke 64bit 3.7+ as described in #427.

Now we don't support 3.6 anymore, we could drop this conversion and live happily with the Cython-checked <uint64_t> conversion.

Reverts b5b4abb in #172, and fixes #427

Python 3.6 uses `long` for thread ident, while 3.7 uses `unsigned long`.
@fantix fantix requested a review from 1st1 September 9, 2022 20:53
@fantix fantix merged commit 9c37930 into master Sep 9, 2022
@fantix fantix deleted the thread-ident-uint64 branch September 9, 2022 21:50
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.

uvloop fails to import on SPARC64: OverflowError: Python int too large to convert to C long
2 participants