|
From: Sebastien L. <slo...@gm...> - 2014-01-02 08:26:16
|
Does anybody got an idea? Thanks, Sebastien. On 12/13/2013 10:23 AM, Sebastien Loriot wrote: > Hi, > > In the example attached, I have a simple class A and a function append > that appends to a python list a pair<A,A>. > > After adding an element in the list, I take a reference to each element > A in the pair. If I then force the deletion of the pair then the A's > got deleted too (the print function calls prints incorrect values). > > What am I doing wrong here? > > Thanks, > > Sebastien. |