Yep, delete would be handy. Brecht said that on C level we could have extend only and on Python level both add/extend.<br><br><div class="gmail_quote">On Wed, Jun 17, 2009 at 12:52 AM, joe <span dir="ltr">&lt;<a href="mailto:joeedh@gmail.com">joeedh@gmail.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;">I was wondering, are any other collection functions planned, like e.g.<br>
a delete funtion, an extend function, etc?<br>
<br>
Joe<br>
<div><div></div><div class="h5"><br>
On Tue, Jun 16, 2009 at 12:24 PM, Arystan Dyussenov&lt;<a href="mailto:arystan.d@gmail.com">arystan.d@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I&#39;ve implemented the backend for RNA collection add capable of adding a<br>
&gt; single item to an array or listbase. The interface for add takes PointerRNA<br>
&gt; as item to add.<br>
&gt;<br>
&gt; I want the add function to return PointerRNA of the new item added, and If<br>
&gt; the item is NULL, then Main struct implementation could create a new<br>
&gt; datablock so that the following would be possible:<br>
&gt;<br>
&gt; mesh = bpy.data.meshes.add()<br>
&gt; object = bpy.data.objects.add()<br>
&gt; object.set_data(mesh)<br>
&gt; scene.add(object)<br>
&gt;<br>
&gt; Python would detect empty param list and pass NULL.<br>
&gt;<br>
&gt; Is this design ok?<br>
&gt;<br>
&gt; Will be happy to hear other ideas too :)<br>
&gt;<br>
&gt; More questions later...<br>
&gt; Arystan<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Soc-2009-dev mailing list<br>
&gt; <a href="mailto:Soc-2009-dev@blender.org">Soc-2009-dev@blender.org</a><br>
&gt; <a href="http://lists.blender.org/mailman/listinfo/soc-2009-dev" target="_blank">http://lists.blender.org/mailman/listinfo/soc-2009-dev</a><br>
&gt;<br>
&gt;<br>
_______________________________________________<br>
Soc-2009-dev mailing list<br>
<a href="mailto:Soc-2009-dev@blender.org">Soc-2009-dev@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/soc-2009-dev" target="_blank">http://lists.blender.org/mailman/listinfo/soc-2009-dev</a><br>
</blockquote></div><br>