Eric Snow added the comment: Using PyDict_GetItemWithError() is a good idea. Also, raising KeyError when the value is NULL (and no errors set) eliminates the crash. Here's a patch that fixes the problem. Unless there are any objections, I'll commit it in a couple hours.
---------- stage: test needed -> patch review Added file: http://bugs.python.org/file39591/issue24347.dif _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24347> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com