]> granicus.if.org Git - python/commit
At the PythonLabs meeting someone mentioned it would make Jim really
authorGuido van Rossum <guido@python.org>
Wed, 5 Dec 2001 19:46:42 +0000 (19:46 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 5 Dec 2001 19:46:42 +0000 (19:46 +0000)
commitd331cb550221cbf0a5863968ed272fb2afc90202
tree55cd126e9bd86860463f2dd440f9dff890e25db5
parent698da02d3b0ce3364dc4e9bd61a47d73ca4e74a7
At the PythonLabs meeting someone mentioned it would make Jim really
happy if one could delete the __dict__ attribute of an instance.  I
love to make Jim happy, so here goes...

- New-style objects now support deleting their __dict__.  This is for
  all intents and purposes equivalent to assigning a brand new empty
  dictionary, but saves space if the object is not used further.
Lib/test/test_descr.py
Misc/NEWS
Objects/typeobject.c