Chris Angelico <ros...@gmail.com> writes: > On Fri, Dec 8, 2017 at 5:28 AM, MRAB <pyt...@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. l...@metapensiero.it | -- Fortunato Depero, 1929. -- https://mail.python.org/mailman/listinfo/python-list