[C++-sig] Re : changing argument value in a C++/Python code
Stefan Seefeld
stefan at seefeld.name
Fri Jun 8 18:16:18 CEST 2012
Christoph,
your C++ code passes a pointer argument to the "g()" member function,
but your Python bindings don't specify a call policy. (I wonder why that
doesn't raise a compilation error.)
The effect mostly likely is that in fact the value is copied, so you see
a new object.
Explicit is better than implicit.
Stefan
--
...ich hab' noch einen Koffer in Berlin...
More information about the Cplusplus-sig
mailing list