recurvata

When to use del - generic question

Discussion created by recurvata on Apr 10, 2012
Latest reply on Apr 20, 2012 by recurvata
This is a generic type question, no specific problem involved.

What is good practice in deciding when to use del in a script? For example, I use it when done with a mapping.MapDocument object, but some of the Help files in the Resource Library seem to use it on variables as well. I don't see the point of that, but not a python expert either. Is there a guide to when you should use it? I looked at the Python documentation, but it was kind of obscure to me, especially when the documentation contains statements like "Rather than spelling it out in full details, here are some hints."

Outcomes