Skip to content

Disagreement with CPython for str.istitle/title/isdigit/isidentifier/isnumeric #7527

Closed

Description

@sunmy2019

Python Documentation or reference to CPython source code

tested on current main: 1a9b10e

There are many examples and I picked one.

# the following is True in CPython and False in RustPython
print(
    "\u1c89".istitle() == False,
    "DZ".title() == "Dz",
    "\u0661".isdigit() == True,
    "\u0c5d".isidentifier() == True,
    "\u3405".isnumeric() == True,
    # known issues of isalpha and isalnum omitted
)

Activity

  1. added
    C-compatA discrepancy between RustPython and CPython
    on Mar 28, 2026
  2. added a commit that references this issue on May 1, 2026
    fb49477
  3. added a commit that references this issue on May 1, 2026
    c2141a7
  4. added a commit that references this issue on Sep 16, 2026
    c0005f7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-compatA discrepancy between RustPython and CPython

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions