Python 'with' not deleting object
<p>Trying to properly delete a Python object.  I'm creating an object and then supposedly deleting it with a 'with' statement.  But when I do a print out after the 'with' statement is closed.... the object is still there:</p>

<pre><code>class Things(object):
   def __init__(self, clothes, food, money):
       self.clothes = clothes
       self.food = food
       self.money = money

   def __enter__(self):
       return self

   def __exit__(self, exc_type, exc_val, exc_tb):
       print('object deleted')

with Things('socks','food',12) as stuff:
    greg = stuff.clothes
    print(greg)


print(stuff.clothes)
</code></pre>

<p>returns :</p>

<pre><code>socks
object deleted
socks
</code></pre>