Re: [docs] PyModule_GetDict() claims it can never fail, but it can (issue 12946)
7 Aug
2016
7 Aug
'16
9:40 a.m.
http://bugs.python.org/review/12946/diff/18078/Doc/c-api/module.rst File Doc/c-api/module.rst (right): http://bugs.python.org/review/12946/diff/18078/Doc/c-api/module.rst#newcode6... Doc/c-api/module.rst:64: :exc:`SystemError` is raised and *NULL* is returned. ok in this case, sorry, I was on my phone and not on my laptop for the review. thanks for the copy/paste. I have checked the code. On 2016/08/06 17:34:30, berkerpeksag wrote:
On 2016/08/06 15:47:10, matrixise wrote:
The assert will raise a SystemError ?
No, the following branch will raise SystemError:
if (!PyModule_Check(m)) { PyErr_BadInternalCall(); return NULL; }
I added the assert statement as a sanity check.
3016
Age (days ago)
3016
Last active (days ago)
0 comments
1 participants
participants (1)
-
stephane@wirtel.be