[New-bugs-announce] [issue46694] isdigit/isnumeric vs int()

Nonsense report at bugs.python.org
Wed Feb 9 12:55:00 EST 2022

New submission from Nonsense <smtplukas.tanner.test at gmail.com>:

When typing in "²".isdigit() or "²".isnumeric() it gives True
but when typing in int("²") it errors out:
ValueError: invalid literal for int() with base 10: '²'

components: Interpreter Core
messages: 412934
nosy: smtplukas.tanner.test
priority: normal
severity: normal
status: open
title: isdigit/isnumeric vs int()
type: behavior
versions: Python 3.10

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list