Answer the question
In order to leave comments, you need to log in
How in Python 3 to find out what version of the universal character set unicode is used by the interpreter?
Needed, for example, for the chr() function.
How can the version of the universal character set be updated?
Answer the question
In order to leave comments, you need to log in
It seems to me that the question is incorrect. Python does not use any version of UNICODE (and UCS, respectively). Python3 can natively work with unicode character codes, that is, just with numbers from 0 to 0x10FFFF. The concept of a version does not seem to apply here, because it does not matter to him what exactly is hidden under these codes.
chr(n) will return the result for any number between 0 and 0x10FFFF.
All other encodings (win1251, cp866) he just knows how to convert to unicode and back.
For example, U+1F999 - appeared in Unicode 11. My browser doesn't show it. Python3, which appeared back in 2008, could not know about this symbol, but it worked fine with it. Because Python works with codes, not symbols.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question