[capi-sig] Strange Python behaviour after C-Function
philipp at achtziger.de
Fri Jan 23 16:49:32 CET 2009
thanks for the numerous replies to my previous questions.
Everything in C works fine so far, but there is a very strange behaviour
in python after visiting the C-Function.
The return value of my C-Function is a list of floats. I can print that
list, I can do:
works fine, but if try to do
for element in list:
It does that as well, but as soon as the end of the list is reached, I
do get an IndexError: list assignment index is out of range.
Surprisingly I do get that as well with any list, where I try to use the
for loop after using the C-function. So if I use an arbitrary list like
for l in ll:
I do get the same error, and I don't before calling the C-function...
Does that sound familiar to anybody? Is that caused by one of the
More information about the capi-sig