X Tutup
The Wayback Machine - https://web.archive.org/web/20250617125448/https://github.com/python/cpython/issues/93335
Skip to content

isnumeric() return True for "三" and float("三") throws error #93335

Closed as not planned
@nicoszerman

Description

@nicoszerman

Windows 11
Python 3.10.4

error:

s = "三"
if s.isnumeric():
    print(float(s))

Throws ValueError: could not convert string to float

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup