Thanks that did the trick!<br><br><div class="gmail_quote">On Mon, Oct 25, 2010 at 7:07 PM, Ralf W. Grosse-Kunstleve <span dir="ltr">&lt;<a href="mailto:rwgk@yahoo.com">rwgk@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Oh, at second glance...<br>
<div class="im"><br>
<br>
<br>
&gt; &gt;             object obj = mMainNamespace[ name.c_str()  ];<br>
&gt; &gt;            obj.del();<br>
<br>
</div>This cannot work!<br>
You need to do it the way I showed before.<br>
<br>
mMainNamespace[ name.c_str()  ].del();<br>
<br>
The [] operator returns a proxy object which supports the del since<br>
it still knows what the target object is. Once you&#39;ve assigned the<br>
proxy object to boost::python::object the target information is lost.<br>
<div><div></div><div class="h5"><br>
Ralf<br>
_______________________________________________<br>
Cplusplus-sig mailing list<br>
<a href="mailto:Cplusplus-sig@python.org">Cplusplus-sig@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/cplusplus-sig" target="_blank">http://mail.python.org/mailman/listinfo/cplusplus-sig</a><br>
</div></div></blockquote></div><br>