Berker Peksag added the comment: I've changed the dead code to
assert(d != NULL); and added the following sentence to PyModule_GetDict documentation: If *module* is not a module object (or a subtype of a module object), :exc:`SystemError` is raised and *NULL* is returned. ---------- keywords: +patch nosy: +berker.peksag stage: -> patch review versions: +Python 3.6 -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file44030/issue12946.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12946> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com