C-API: A beginner's problem

Duncan Booth duncan.booth at invalid.invalid
Sun Mar 19 11:37:14 EST 2006


Nick Smallbone wrote:

> Duncan Booth wrote:
>> 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).
> 
> They are allowed in C99, according to GCC's manual.
> 
> 

Which just shows how long it is since I wrote any C.



More information about the Python-list mailing list