Help with C API

vincent wehren vincent at visualtrans.de
Sat May 1 02:22:25 EDT 2004


Nick Jacobson wrote:
...
> I'd like to do the reverse: take an C array (say, with 100 elements)
> and copy its elements into a Python list.  But I don't know where to
> start...there's no PySequence_Fast_INSERT or even PySequence_Insert
> function, for example.  Can I create an empty list in the API or
> should I just pass one in from Python?
> 
> Can someone please help with this?  Thanks in advance!!
> 
> --Nick

http://docs.python.org/api/listObjects.html is probably a good start

Regards,
Vincent Wehren







More information about the Python-list mailing list