ANNOUNCE: Thesaurus - a recursive dictionary subclass using attributes
ian.g.kelly at gmail.com
Tue Dec 11 23:20:09 CET 2012
On Tue, Dec 11, 2012 at 2:53 PM, Ian Kelly <ian.g.kelly at gmail.com> wrote:
> and then I ran the examples, and the output was unchanged. As Steven
> pointed out, I don't see how that first branch could succeed anyway,
> since self.data is never defined.
It occurs to me that the UserDict class does have a data attribute.
Perhaps there was another version of Thesaurus that inherited from
UserDict instead of dict, and so the access to .data is a holdover
from legacy code?
More information about the Python-list