In a Python console, I obtain as expected:
>>> chr(0x10ffff)
'\U0010ffff'
>>> chr(0x110000)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: chr() arg not in range(0x110000)
In this table which provides all the unicodes, the maximal used value (not reserved) is 0xE01EF, and with reserved ones 0x10FFFF. This question explains reasons why the maximal value is 0x10FFFF, but in order to design a code that can adapt to unicode standard evolution, how can I get this maximal value? Is there an existing module that provides it?