On 9/28/07, George Sakkis email@example.com wrote:
I wonder if this was considered and rejected in the Py3K discussions; PEP 3099 doesn't mention anything about it.
Yes. del (and especially __del___) has been discussed on and off on the python-3000 list.
http://mail.python.org/pipermail/python-3000/2006-September/003855.html http://mail.python.org/pipermail/python-3000/2007-May/007129.html http://mail.python.org/pipermail/python-3000/2007-May/007683.html
I have used "del x" a few times to shorten the list of exported names in modules which helps epydoc. Never found any use for del x[i] or del x.a though.