Skip to content

Use of Python deprecated APIs. #17629

Closed

Description

@methane

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.

Activity

  1. tacaswell commented on Jun 14, 2020

    @tacaswell
    Member

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

  2. added this to the v3.4.0 milestone on Jun 14, 2020
  3. added a commit that references this issue on Jun 18, 2020
    0a84765
  4. modified the milestones: v3.4.0, v3.3.0 on Jun 20, 2020
  5. added a commit that references this issue on Jul 1, 2020
    707fccf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions