Because it has no effects: `del' just removes the `self' name from the locals dictionary, and this is something that will be done automatically as soon as the function exits.
When used in this way, `del' acts on local/global names, it does not directly modify the object. In Python there are no ways to force an object to be free()d. There are tecniques to work around this problem, however `del' is not a solution.
Because it has no effects: `del' just removes the `self' name from the locals dictionary, and this is something that will be done automatically as soon as the function exits.
When used in this way, `del' acts on local/global names, it does not directly modify the object. In Python there are no ways to force an object to be free()d. There are tecniques to work around this problem, however `del' is not a solution.