Multiple returns from a python function

Joined
Aug 10, 2012
Messages
1
Reaction score
0
How do I handle a Python function that returns multiple lists

Python script:
display():
a = [ 'a','b','abc']
b = [ 1 , 2 , 3]
return (a,b)


In the c function calling the above python function:

pValue,pValue1 = PyObject_CallObject(pFunc, pArgs);


But then I cannot use the objects to extract the list values.
What am I doing wrong ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,965
Messages
2,570,148
Members
46,710
Latest member
FredricRen

Latest Threads

Top