[Zope] removing an item from a list

Phil Harris phil.harris@zope.co.uk
Tue, 19 Jun 2001 16:58:05 +0100


If the thing in question is really a list not a string as you show here then
couldn't you do something like:

bozo.del[2]

which should delete the third item in the list.
----- Original Message -----
From: "Junk" <junk@gargl.net>
To: <zope@zope.org>
Sent: Tuesday, June 19, 2001 4:32 PM
Subject: [Zope] removing an item from a list


> hello (again)
>
> i'm still stuck at the same point, that is i want to remove an element
from
> an array, let's say i have
>
> dtml-let bozo="a,b,c,d"
>
> and i want to kill "c", i thought i could make bozo.remove("b") but it
> doesn't seem to work, so what can i do about it ?
>
> thanx,
>
> $ven
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )