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

Make isxidstart() and isxidcontinue() module only functions in unicodedata #143897

Closed
Labels
3.15new features, bugs and security fixesextension-modulesC modules in the Modules dirtype-featureA feature request or enhancement
@serhiy-storchaka

Description

@serhiy-storchaka

unicodedata functionsisxidstart() andisxidcontinue() were added in#129117. But it added also corresponded methods inunicodedata.ucd_3_2_0 which are identical to module level functions except that they return False for codes not assigned in Unicode 3.2.0.

unicodedata.ucd_3_2_0 exists solely for implementation of obsolete IDNA2003 (RFC 3490 and RFC 3491) in theidna module.isxidstart() andisxidcontinue() are not needed for this. I am not even sure they return correct values for Unicode 3.2.0, because the XID_Start and XID_Continue properties can be added to assigned codes (at least this happened with other properties).

So, I think thatisxidstart() andisxidcontinue() should only be exposed asunicodedata functions, not asunicodedata.ucd_3_2_0 methods. There is already a precedence -- functions related to grapheme cluster breaking are only exposed at the module level. This is because the grapheme cluster break algorithm was completely different in older versions of Unicode, and many properties that are used now did not even exist in older versions of Unicode.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.15new features, bugs and security fixesextension-modulesC modules in the Modules dirtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2026 Movatter.jp