Skip to content

Conversation

@adorilson
Copy link
Contributor

@adorilson adorilson commented Dec 13, 2025

WIP to #106318

#106318: Add examples for str.isnumeric()


📚 Documentation preview 📚: https://cpython-previews--142680.org.readthedocs.build/

Comment on lines +2164 to +2166
>>> '٠١٢٣٤٥٦٧٨٩'.isnumeric() # Arabic-indic digit zero to nine
True
>>> ''.isnumeric() # Vulgar fraction one fifth
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
>>> '٠١٢٣٤٥٦٧٨٩'.isnumeric() # Arabic-indic digit zero to nine
True
>>> ''.isnumeric() # Vulgar fraction one fifth
>>> '٠١٢٣٤٥٦٧٨٩'.isnumeric() # Arabic-indic digit zero to nine
True
>>> ''.isnumeric() # Vulgar fraction one fifth

(False, True, True)

See also :meth:`isdecimal` and :meth:`isdigit`. Numeric characters are
decimal numbers superset.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
decimal numbers superset.
a superset of decimal numbers.

@hugovk hugovk added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Dec 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting merge docs Documentation in the Doc dir needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants