[issue45692] IDLE: define word/id chars in one place.
Serhiy Storchaka
report at bugs.python.org
Tue Nov 2 13:08:14 EDT 2021
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
Complete sets of characters which can be used in identifiers are too large:
>>> allchars = ''.join(map(chr, range(0x110000)))
>>> identstartchars = ''.join(c for c in allchars if c.isidentifier())
>>> identcontchars = ''.join(c for c in allchars if ('a' + c).isidentifier())
>>> len(identstartchars), len(identcontchars)
(131975, 135053)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45692>
_______________________________________
More information about the Python-bugs-list
mailing list