Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

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

Improveencodings.normalize behaviour or docs #136702

Open
Assignees
StanFromIreland
Labels
stdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error
@StanFromIreland

Description

@StanFromIreland

Bug report

Bug description:

This is to wait for#55531 /#136643

  • This function accepts bytes since98297ee. This is however undocumented, and untested. I propose deprecating (& later removing) it, otherwise it should be documented and tested properly.

  • This function is documented as

    encoding should be ASCII only.

    However, this is only enforced for bytes (see point 1) with aValueError, and for strings the characters are simply removed. We should be consistent and not depend on input type. I propose enforcing this for strings too with aValueError.

cc@malemburg (Note, absolutely no rush for this one, we should get the performance issue/C implementation sorted out first :-)

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Metadata

Metadata

Labels

stdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp