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"><<a href="mailto:joeedh@gmail.com">joeedh@gmail.com</a>></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<<a href="mailto:arystan.d@gmail.com">arystan.d@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I've implemented the backend for RNA collection add capable of adding a<br>
> single item to an array or listbase. The interface for add takes PointerRNA<br>
> as item to add.<br>
><br>
> I want the add function to return PointerRNA of the new item added, and If<br>
> the item is NULL, then Main struct implementation could create a new<br>
> datablock so that the following would be possible:<br>
><br>
> mesh = bpy.data.meshes.add()<br>
> object = bpy.data.objects.add()<br>
> object.set_data(mesh)<br>
> scene.add(object)<br>
><br>
> Python would detect empty param list and pass NULL.<br>
><br>
> Is this design ok?<br>
><br>
> Will be happy to hear other ideas too :)<br>
><br>
> More questions later...<br>
> Arystan<br>
><br>
</div></div>> _______________________________________________<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>
><br>
><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>