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 ezio.melotti, mrabarnett, python-dev, serhiy.storchaka, vstinner
Date 2016-11-23.09:21:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1479892903.12.0.078578682957.issue28765@psf.upfronthosting.co.za>
In-reply-to
Content
sre-concrete.patch is wrong: if groupindex is a subtype of dict, you should use PyObject_GetItem.

I like the idea of using PyDict_GetItem, you should just implement stricter checks in _sre.compile(). Maybe using PyDict_CheckExact?

Since it's a private module, we don't have to support all types. It's ok to implement further optimizations.
History
Date User Action Args
2016-11-23 09:21:43vstinnersetrecipients: + vstinner, ezio.melotti, mrabarnett, python-dev, serhiy.storchaka
2016-11-23 09:21:43vstinnersetmessageid: <1479892903.12.0.078578682957.issue28765@psf.upfronthosting.co.za>
2016-11-23 09:21:43vstinnerlinkissue28765 messages
2016-11-23 09:21:42vstinnercreate