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

[C API] Add PyUnicode_Equal() function #124502

Closed
Labels
@vstinner

Description

@vstinner

Python 3.13 moved the private _PyUnicode_EQ() function to internal C API.mypy andPyodide are using it.

I propose to add a public PyUnicode_Equal(a, b) function to the limited C API 3.14 to replace the private _PyUnicode_EQ() function:

  • Return1 ifa is equal tob.
  • Return0 ifa is not equal tob.
  • Set aTypeError exception and return-1 ifa orb is not a Pythonstr object.
  • The function always succeed ifa andb are strings.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp