I'm creating a python wrapper for a C++ api, making support for some types was more or less straightfoward using templates but the api needs some variables by reference, one of them is an int and the other is float.
If I am not wrong it is done by creating a INOUT apply like:
%apply float& INOUT { float& a };
%apply int& INOUT { int& a };
But how I use that types inside my python?
Thank you in advance for any tip.