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

Fix build and all deprecation warnings on Python 3. #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jamadden
Copy link
Contributor

@jamadden jamadden commented May 20, 2021

Fixes #10.

This updates the package to use the new-in-Python-3 unicode APIs when available. Previously there were ~50 deprecation warnings. Now there are none.

This also converts most uses of size_t into Py_ssize_t, because that's what the Python APIs use and return (e.g., for unicode length, sequence length, etc). This eliminates more warnings and casts.

Fixes zopyx#10.

This updates the package to use the new-in-Python-3 unicode APIs when available.
@jamadden
Copy link
Contributor Author

travis-ci.org is shutting down so there's currently no CI running on PRs here. I have tested it locally with Python 2.7, 3.5 and 3.9.

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.

Fails to build on Python 3 with errors about PyInt_AS_LONG (with certain compiler options)
1 participant