Message304052
On Oct 6, 2017, at 15:04, Serhiy Storchaka <report@bugs.python.org> wrote:
> Serhiy Storchaka <storchaka+cpython@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.
Oh, I think I like that :) |
|
Date |
User |
Action |
Args |
2017-10-10 15:25:29 | barry | set | recipients:
+ barry, rhettinger, ezio.melotti, mrabarnett, methane, serhiy.storchaka |
2017-10-10 15:25:28 | barry | link | issue31672 messages |
2017-10-10 15:25:28 | barry | create | |
|