Author vstinner
Recipients SilentGhost, ezio.melotti, mrabarnett, serhiy.storchaka, vstinner
Date 2016-11-18.23:04:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1479510255.24.0.324371039205.issue28727@psf.upfronthosting.co.za>
In-reply-to
Content
New approach: patch 5 now compares indexgroup, groupindex and code instead of comparing pattern, to handle correctly two equal pattern strings compiled with the re.LOCALE flag and two different locales.

The patch also converts indexgroup list to a tuple to be able to hash it. (It also prevents modification, but this is just a side effect, and groupindex remains a mutable dictionary.)

_sre.compile() checks types which helps to identify a bug in unit tests.
History
Date User Action Args
2016-11-18 23:04:15vstinnersetrecipients: + vstinner, ezio.melotti, mrabarnett, SilentGhost, serhiy.storchaka
2016-11-18 23:04:15vstinnersetmessageid: <1479510255.24.0.324371039205.issue28727@psf.upfronthosting.co.za>
2016-11-18 23:04:15vstinnerlinkissue28727 messages
2016-11-18 23:04:15vstinnercreate