This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients serhiy.storchaka, vstinner
Date 2016-11-21.15:57:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1479743857.98.0.418828964214.issue28765@psf.upfronthosting.co.za>
In-reply-to
Content
Attached patch makes _sre.compile() more strict on types: groupindex must be a dictionary and indexgroup must be a tuple.

Currently, indexgroup is passed as a list. I chose to convert it to a tuple to use less memory and to prevent unwanted changes. For unwanted changed, I'm not sure because groupindex remains a mutable dictionary. Do you think that it's worth it to require a tuple? Another option is to accept a list but to convert it to a list, but this change is more specific to the current implementation.
History
Date User Action Args
2016-11-21 15:57:38vstinnersetrecipients: + vstinner, serhiy.storchaka
2016-11-21 15:57:37vstinnersetmessageid: <1479743857.98.0.418828964214.issue28765@psf.upfronthosting.co.za>
2016-11-21 15:57:37vstinnerlinkissue28765 messages
2016-11-21 15:57:37vstinnercreate