[C++-sig] Returning values to Python in C++ reference arguments

Trigve Siver trigves at yahoo.com
Mon May 25 11:39:30 CEST 2015



----- Original Message -----
> From: Jason Addison <jraddison at gmail.com>
> To: cplusplus-sig at python.org
> Cc: 
> Sent: Saturday, May 23, 2015 6:05 PM
> Subject: [C++-sig] Returning values to Python in C++ reference arguments
> 
> How can results be returned in function arguments?
> 


I don't think that you can return arguments by reference/pointers in python. You could theoretically pass a mutable sequence (list) and push the objects there.

But the common approach is to return tuple.


More information about the Cplusplus-sig mailing list