SystemError: error return without exception set

Lele Gaifax lele at metapensiero.it
Thu Dec 7 14:23:20 EST 2017


Chris Angelico <rosuav at gmail.com> writes:

> On Fri, Dec 8, 2017 at 5:28 AM, MRAB <python at mrabarnett.plus.com> wrote:
>> It's probably that the code is assuming that call somewhere to the Python
>> API is returning a reference, but sometimes it isn't.
>>
>> _All_ such return values should be checked for NULL.
>
> Mmm.... true. Forgot about that part. So, yes, that's a different type
> of failure that could be happening. Makes the audit a bit harder.

More probably the problem is not directly from a Python API, as most of the
time when such APIs return NULL they also call PyErr_SetXXX() appropriately.

ciao, lele.
-- 
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele at metapensiero.it  |                 -- Fortunato Depero, 1929.




More information about the Python-list mailing list