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
More information about the Python-list mailing list
Sun Jul 21 15:04:07 EDT 2002
- Previous message (by thread): Setting the right border in PythonWin IDE
- Next message (by thread): Calling a python function with a list as the input argument from C
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Previous message (by thread): Setting the right border in PythonWin IDE
- Next message (by thread): Calling a python function with a list as the input argument from C
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list