Deleting objects
Terry Reedy
tjreedy at udel.edu
Wed Jan 14 23:39:47 EST 2004
<user at domain.invalid> wrote in message
news:c542f8acd755de732c9da8fc39fbb50a at news.teranews.com...
> Say I have an object (foo), that contains an
> array (bar) of references to other objects.
>
> Now I want to puff some of the objects from the
> array so that I remove the array element, and
> destroy the oject.
>
> but when I do:
>
> del foo.bar[0]
>
> Python says:
> object doesn't support item deletion
What is the actual type of foo.bar? >>>type(foo.bar) # prints what?
tjr
More information about the Python-list
mailing list