Barry A. Warsaw <[email protected]> added the comment: On Oct 6, 2017, at 15:04, Serhiy Storchaka <[email protected]> wrote: > Serhiy Storchaka <[email protected]> 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.
Oh, I think I like that :) ---------- _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue31672> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
