Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment: Another solution (works in 3.6 too): set idpattern to r'(?-i:[_a-zA-Z][_a-zA-Z0-9]*)'.
This looks pretty weird, setting the re.IGNORECASE flag and then unsetting it. But it works, and don't break the user code that changes idpattern without changing flags. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31672> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com