On Dec 11, 8:35 pm, Jaume Bonet wrote:
> //Here we take the info coming from python and transform it
> into a vector (will allow us to work with numbers instead of
> // strings) and shareInt which is an array of sets (form
> std::set)
> vector translator = string2int
> (sh
When I tried the C++ function with a C++ main() (skipping the Python
part) it didn't show any memory problem, but I'll re-check it anyway,
thanks...
On Dec 16, 9:16 am, "Gabriel Genellina"
wrote:
> En Thu, 11 Dec 2008 15:35:58 -0200, Jaume Bonet
> escribió:
>
> > This is the function that is v
En Thu, 11 Dec 2008 15:35:58 -0200, Jaume Bonet
escribió:
This is the function that is visible from python and the one that the
python code calls:
static PyObject * IMFind (PyObject *self, PyObject *args, PyObject
*kwargs) {
Your function does not call any Python function except
PyArg_P
Sure, sorry...
This is the function that is visible from python and the one that the
python code calls:
static PyObject * IMFind (PyObject *self, PyObject *args, PyObject
*kwargs) {
//Array for the detection of the parameters coming from Python
static char *kwlist[] =
{"shareInt"
Jaume Bonet wrote:
> When I test the code from C++ each time I delete a vector the consumed
> memory decreases, but it does not happen when the module is called
> from python.
What is a "vector" for you? Do you mean std::vector? A vector allocated
using malloc()? A vector allocated using new? Just
Hi,
I'm pretty new in python programming.
I've been developing a C++ module for a python application that simply
gets the information from python, makes the last processing (which is
very time consuming -that's why I make it in C++-).
When I test the code from C++ each time I delete a vector the