Terry J. Reedy <tjre...@udel.edu> added the comment:
autoexpand.py, line 20, wordchars 'wordchars' is correct here since words beginning with digits can be expanded. >>> s = '0x4f334' >>> 0x4f334 # Hit alt-/ after 0 and enter 324404 Used in line 89 in method getprevword while i > 0 and line[i-1] in self.wordchars: i = i-1 Proposed replacement seems to work. >>> i = len(s) ... while i > 0 and (c := s[i-1] or c == '_'): ... i -= 1 ... >>> i,c (0, '0') ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45692> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com