Skip to content

MAINT: Replace PyUString_GET_SIZE with PyUnicode_GetLength.#16652

Merged
charris merged 1 commit intonumpy:maintenance/1.19.xfrom
charris:backport-16642
Jun 21, 2020
Merged

MAINT: Replace PyUString_GET_SIZE with PyUnicode_GetLength.#16652
charris merged 1 commit intonumpy:maintenance/1.19.xfrom
charris:backport-16642

Conversation

@charris
Copy link
Member

@charris charris commented Jun 21, 2020

Backport of #16642.

The former is deprecated.
While they have slightly different meanings, the difference is irrelevant for comparison against 0.

Also replaces PyUString_Check with PyUnicode_Check for consistency.

Partially addresses gh-16640.

The former is deprecated.
While they have slightly different meanings, the difference is irrelevant for comparison against 0.

Also replaces `PyUString_Check` with `PyUnicode_Check` for consistency.
@charris charris added this to the 1.19.1 release milestone Jun 21, 2020
@charris charris merged commit 71a0abd into numpy:maintenance/1.19.x Jun 21, 2020
@charris charris deleted the backport-16642 branch June 21, 2020 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants