C-API: A beginner's problem

Duncan Booth duncan.booth at invalid.invalid
Sun Mar 19 10:32:59 EST 2006


Heikki Salo wrote:

> 
> And closer look tells that the code should not even compile. Is the
> code cut & pasted directly? Line "list[i] = item;" tries to assign a
> pointer to an int-array, which should not compile. There are other
> similar oddities. 

... such as the declaration of list at a point in the code which is not 
permitted in C, and using a non constant value for the length (which is 
also not allowed).



More information about the Python-list mailing list