Apr-19-2019, 03:31 AM
i found a total of 112333 Unicode characters, counting ASCII, that are valid for identifiers, according to str.isidentifier().
only 109808 of them are valid as a single character identifier. the others are probably modifiers that can be part of an identifier.
>>> len(''.join(chr(x) for x in range(0,0x110000) if ('abc'+chr(x)+'abc').isidentifier()))
only 109808 of them are valid as a single character identifier. the others are probably modifiers that can be part of an identifier.
>>> len(''.join(chr(x) for x in range(0,0x110000) if ('abc'+chr(x)+'abc').isidentifier()))