[Tutor] Python-list thread: int vs. float
eryk sun
eryksun at gmail.com
Sat Feb 11 03:36:56 EST 2017
On Sat, Feb 11, 2017 at 8:06 AM, Steven D'Aprano <steve at 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
More information about the Tutor
mailing list