[issue12946] PyModule_GetDict() claims it can never fail, but it can
Berker Peksag
report at bugs.python.org
Sat Aug 6 06:22:35 EDT 2016
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 <report at bugs.python.org>
<http://bugs.python.org/issue12946>
_______________________________________
More information about the Python-bugs-list
mailing list