Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use of Python deprecated APIs. #17629

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

Closed
methane opened this issue Jun 14, 2020 · 1 comment · Fixed by #17680
Closed

Use of Python deprecated APIs. #17629

methane opened this issue Jun 14, 2020 · 1 comment · Fixed by #17680
Milestone

Comments

@methane
Copy link

methane commented Jun 14, 2020

See here.

size = PyUnicode_GET_SIZE(textobj);
codepoints.resize(size);
Py_UNICODE *unistr = PyUnicode_AsUnicode(textobj);

PyUnicode_GET_SIZE, PyUnicode_AsUnicode, and Py_UNICODE are deprecated.
We are planning to remove them in Python 3.11.

Please replace them with PyUnicode_GET_LENGTH, PyUnicode_READ, and Py_UCS4.

@tacaswell
Copy link
Member

Is there a way to make the deprecations fatal at compile time?

@tacaswell tacaswell added this to the v3.4.0 milestone Jun 14, 2020
tacaswell added a commit to tacaswell/matplotlib that referenced this issue Jun 18, 2020
The new macros were added in py33 so all versions of Python we support
have them.

closes matplotlib#17629
@QuLogic QuLogic modified the milestones: v3.4.0, v3.3.0 Jun 20, 2020
tacaswell added a commit to tacaswell/matplotlib that referenced this issue Jul 1, 2020
The new macros were added in py33 so all versions of Python we support
have them.

closes matplotlib#17629
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 a pull request may close this issue.

3 participants