diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-09-03 12:16:49 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-09-03 12:16:49 +0200 |
commit | 99bb14bf0c4b9bdef2535710cc14abbdf5aa648a (patch) | |
tree | 2183ba90650d4ffe68fc1a3f3caa9c1f6b801f1a /Python/ast.c | |
parent | 31eb5fbe895169256784d4eccdcbf799c945e272 (diff) | |
download | cpython-git-99bb14bf0c4b9bdef2535710cc14abbdf5aa648a.tar.gz |
type_call() now detect bugs in type new and init
* Call _Py_CheckFunctionResult() to check for bugs in type
constructors (tp_new)
* Add assertions to ensure an exception was raised if tp_init failed
or that no exception was raised if tp_init succeed
Refactor also the function to have less indentation.
Diffstat (limited to 'Python/ast.c')
0 files changed, 0 insertions, 0 deletions