← 输入框|github.com|刷新
Skip to content

Disagreement with CPython for str.islower/isupper/swapcase #7526

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(
    "\u0295".islower() == True,
    "\u1c89".isupper() == False,
    "Σίσυφος".swapcase() == "σΊΣΥΦΟΣ",
)

Activity

  1. added
    C-compatA discrepancy between RustPython and CPython
    on Mar 28, 2026
  2. added 2 commits that reference this issue on Apr 12, 2026
    113ba92
    44ef516
  3. added a commit that references this issue on Apr 14, 2026
    4bbabe5
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