Message304052
| Author |
barry |
| Recipients |
barry, ezio.melotti, methane, mrabarnett, rhettinger, serhiy.storchaka |
| Date |
2017-10-10.15:25:28 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<49489D98-D6D3-4096-96AF-F6A0234CD329@python.org> |
| In-reply-to |
<1507316681.54.0.213398074469.issue31672@psf.upfronthosting.co.za> |
| Content |
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 :) |
|