in c extension what is easiest way to build a (PyObject) list from an array of doubles?

seberino at spawar.navy.mil seberino at spawar.navy.mil
Tue Feb 3 16:50:09 EST 2004


Paul

Thanks.  I agree array is great in Python for processing
homogenous lists but what about in **C code** if you must
return a Python list built from a C array?

How do you build a list/tuple/array/ from a C array of numbers?

Chris

On Mon, Feb 02, 2004 at 11:04:13PM -0800, Paul Prescod wrote:
> Christian Seberino wrote:
>
> >In c extension what is easiest way to build a (PyObject) list from an
> >array of doubles?
>
> No. Check out the array module.
>
>  Paul Prescod
>
>

--
_______________________________________

Christian Seberino, Ph.D.
SPAWAR Systems Center San Diego
Code 2872
49258 Mills Street, Room 158
San Diego, CA 92152-5385
U.S.A.

Phone: (619) 553-9973
Fax  : (619) 553-6521
Email: seberino at spawar.navy.mil
_______________________________________




More information about the Python-list mailing list