The del statement
Fredrik Lundh
fredrik at pythonware.com
Tue Dec 5 03:49:09 EST 2006
Marco Aschwanden wrote:
> 2. Calls the destructor of an object --> list.destruct()
"del name" only removes the name from the current namespace, it doesn't
destroy the object:
http://effbot.org/pyref/del
the actual destruction is handled by the garbage collector, when the
time is right.
> The del keyword for removing an element in a container is a bit
> awkward to me.
do you find the x[i] syntax for calling the getitem/setitem methods a
bit awkward too? what about HTTP's use of "GET" and "POST" for most
about everything ? ;-)
</F>
More information about the Python-list
mailing list