Calling a python function with a list as the input argument from C

Chris Liechti cliechti at gmx.net
Sun Jul 21 15:04:07 EDT 2002


Michael Grabietz <michael.grabietz at img-online.de> wrote in 
news:3D3B0160.9090800 at img-online.de:
> I tried the example given in the Python documentation calling Python 
> from C. In this example the input argument of the python function is a 
> tuple. See the code below which works fine.
... 
> Calling Python function with pArgs as tuple:  That works fine !
> Calling Python function with pArgs as a list:  That fails !

the tuple contains the arguments. if you want to pass a list as first 
argument then fill in the list as first element in the tuple.

chris


-- 
Chris <cliechti at gmx.net>




More information about the Python-list mailing list