Skip to content

MAINT: Replace PyUString_GET_SIZE with PyUnicode_GetLength.#16642

Merged
mattip merged 1 commit into
numpy:masterfrom
eric-wieser:fix-unicode-size
Jun 20, 2020
Merged

MAINT: Replace PyUString_GET_SIZE with PyUnicode_GetLength.#16642
mattip merged 1 commit into
numpy:masterfrom
eric-wieser:fix-unicode-size

Conversation

@eric-wieser
Copy link
Copy Markdown
Member

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.
@eric-wieser eric-wieser added this to the 1.19.1 release milestone Jun 20, 2020
@eric-wieser eric-wieser requested a review from seberg June 20, 2020 16:21
@mattip mattip merged commit 5390a02 into numpy:master Jun 20, 2020
@mattip
Copy link
Copy Markdown
Member

mattip commented Jun 20, 2020

Thanks @eric-wieser

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.

3 participants