Extending Python - variable sized arrays?

Skip Montanaro skip at pobox.com
Tue Oct 16 19:08:57 EDT 2001


    >> > 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.

You'll have to create a tuple or list of the appropriate size and populate
it in a loop.

-- 
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/




More information about the Python-list mailing list