Message 303844 - Python tracker

Message303844

Author serhiy.storchaka
Recipients barry, ezio.melotti, methane, mrabarnett, rhettinger, serhiy.storchaka
Date 2017-10-06.19:04:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507316681.54.0.213398074469.issue31672@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-10-06 19:04:41serhiy.storchakasetrecipients: + serhiy.storchaka, barry, rhettinger, ezio.melotti, mrabarnett, methane
2017-10-06 19:04:41serhiy.storchakasetmessageid: <1507316681.54.0.213398074469.issue31672@psf.upfronthosting.co.za>
2017-10-06 19:04:41serhiy.storchakalinkissue31672 messages
2017-10-06 19:04:41serhiy.storchakacreate