STINNER Victor added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28765>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to