Extending Python - variable sized arrays?

Paul Rubin phr-n2001d at nightsong.com
Wed Oct 17 00:25:56 CEST 2001

Tim Egbert <tegbert at abl.med.utah.edu> writes:
> Returning the array as a tuple using Py_BuildValue() is a problem because,
> although I can create the format string dynamically, I can't create a
> dymanically sized argument list.  

Use the apply function.  apply(f, [1,2,3]) is the same as f(1,2,3).

More information about the Python-list mailing list