Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #34653

Re: ANNOUNCE: Thesaurus - a recursive dictionary subclass using attributes

References <201212102248.50766.dave@cinege.com> <CALwzidk=v7aFq+_EcxJV4z3gyCrPCjEj+ACKK7QS+bvtLURtEQ@mail.gmail.com> <201212111557.24851.dave@linkscape.net> <CALwzidnCVaPk2vERU+pPpmp82KAKpiUj-6_5m2Usr9tpatdrCw@mail.gmail.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date 2012-12-11 15:20 -0700
Subject Re: ANNOUNCE: Thesaurus - a recursive dictionary subclass using attributes
Newsgroups comp.lang.python
Message-ID <mailman.748.1355264442.29569.python-list@python.org> (permalink)

Show all headers | View raw


On Tue, Dec 11, 2012 at 2:53 PM, Ian Kelly <ian.g.kelly@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?

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: ANNOUNCE: Thesaurus - a recursive dictionary subclass using attributes Ian Kelly <ian.g.kelly@gmail.com> - 2012-12-11 15:20 -0700

csiph-web