I don't think this patch is the best way. The correct way is to have and
use PyDict_GetWithError. I wouldn't be surprised if you could crash
Python under this patch by putting some function with an import in
__cmp__ in sys.modules.
On Sun, Feb 7, 2016, at 14:23, Serhiy Storchaka wrote:
>
> Serhiy Storchaka added the comment:
>
> Benjamin, could you please make a review?
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue25698>
> _______________________________________