Deleting objects - my earler post got garbled
Robert Brewer
fumanchu at amor.org
Fri Apr 23 01:24:19 EDT 2004
Asun Friere wrote:
> "Martin v. Löwis" <martin at v.loewis.de> wrote in message
> news:<40883067.4000702 at v.loewis.de>...
>
> > There is no way to explicitly delete an object in Python.
>
> So what does "del <object>" actually do then?
There is no "del <object>", only "del <name>". Therefore:
"Deletion of a name removes the binding of that name from the local or global namespace, depending on whether the name occurs in a global statement in the same code block."
as written at: http://docs.python.org/ref/del.html
Robert Brewer
MIS
Amor Ministries
fumanchu at amor.org
More information about the Python-list
mailing list