Extending Python - variable sized arrays?

Skip Montanaro skip at pobox.com
Wed Oct 17 01:08:57 CEST 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)

More information about the Python-list mailing list