21 Aug
2002
21 Aug
'02
12:02 a.m.
From: "Aahz"
1. Rename .remove() to __del__(). Its usage is inconsistent with list.remove(element) which can leave other instances of element in the list. It is more consistent with 'del adict[element]'.
You mean __delitem__, I think. __del__ is only for deleting the object itself when its refcount goes to zero.
Yes!