1 year ago

#262793

test-img

AlixaProDev

What is the Difference between unicodedata.digit () and unicodedata.decimal()? They both seems similar to me

I was reading the docs to understand the unicodedata but I am confused between the unicodedata.digit() and unicodedata.decimal().

They are both similar to me and even return the same results. Can you please explain it a little.

I looked down the pyi file for both the method and they even share the same signature.

import unicodedata
unicodedata.decimal(u"5",'notfound')
unicodedata.digit(u'5','notfound')

python

python-3.x

unicode

python-module

python-unicode

0 Answers

Your Answer

Accepted video resources