On Sat, Feb 11, 2017 at 8:06 AM, Steven D'Aprano <st...@pearwood.info> wrote:
> Valid digits for integers include 0 through 9 in decimal

Note that Python 3 uses the Unicode database to determine the decimal
value of characters, if any. It's not limited to the ASCII decimal
digits 0-9. For example:

    >>> s
    '௧꘢୩'
    >>> int(s)
    123
    >>> print(*(unicodedata.name(c) for c in s), sep='\n')
    TAMIL DIGIT ONE
    VAI DIGIT TWO
    ORIYA DIGIT THREE
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to