[issue45692] IDLE: define word/id chars in one place.
Terry J. Reedy
report at bugs.python.org
Tue Nov 2 16:23:05 EDT 2021
Terry J. Reedy <tjreedy at udel.edu> added the comment:
undo.py, line 254, alphanumeric
Used in immediately following lines to classify chars as 'alphanumeric', 'newline', or 'punctuation' (the default). I believe I have only ever looked at this module to add the test code at the bottom. In any case, I don't know the effect of calling non-ascii chars punctuation, but suspect it is not the best thing. So I suspect that the autoexpand fix would be the best.
The classify method is only used on line 248 in the merge method above.
self.classify(self.chars[-1]) != self.classify(cmd.chars)
merge() is only used on l.124 in addcmd.
To figure out more, I would experiment identifiers without and with non-ascii and undo and redo and see what difference there is.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45692>
_______________________________________
More information about the Python-bugs-list
mailing list