bpo-36299: array('u') uses Py_UCS4 instead of Py_UNICODE by methane · Pull Request #12497 · python/cpython

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@methane

Copy link Copy Markdown

Member

@methane methane commented

Mar 22, 2019

edited by bedevere-bot

Loading

Comment thread

Modules/arraymodule.c Outdated

view->format = (char *)self->ob_descr->formats;
#ifdef Py_UNICODE_WIDE
if (self->ob_descr->typecode == 'u') {
view->format = "w";
Copy link Copy Markdown

Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know why this is "w".

@brettcannon brettcannon added the type-bug

An unexpected behavior, bug, or error

label

Mar 27, 2019

@methane methane closed this

Apr 22, 2020

@methane methane deleted the array-unicode branch

April 28, 2025 03:10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

awaiting core review type-bug

An unexpected behavior, bug, or error

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@methane @brettcannon @the-knights-who-say-ni @bedevere-bot