Re: handle for list constructor?

Andy Bensky (ab@infoseek.com)
Fri, 4 Mar 1994 10:00:42 +0800

> For manipulating Python lists from C, there's a whole load of
> functions (defined in Include/listobject.h) which you can used.
>

How safe is it to use these functions in terms of code maintenance?
Is there any chance that these interfaces might change in future releases?

>
> Also note that ALL FUNCTIONS THAT CREATE OR MODIFY AN OBJECT can
> return an error condition, for which you have to check after calling
> it. See the extensions manual for more info -- it also helps to study
> the source for examples.
>

Is it sufficient to check for a None return value or is it necessary to
call err_occurred() or err_get()?

Thanks for the quick response to the list question!

Andy