Awkwardness of C API for making tuples

Fredrik Lundh fredrik at pythonware.com
Fri Feb 4 02:44:10 EST 2005


Steve Holden wrote:

>> in theory, if PyInt_FromLong succeeds, and PyTuple_SetItem fails, you'll leak
>> an object.
>
> And in practice this will only happen during a period when you are relying critically on it *not* 
> to ...

yeah, but if PyTuple_SetItem fails in this case, you better move that
computer out of the radiation chamber.

</F> 






More information about the Python-list mailing list