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


Groups > comp.lang.python > #34653 > unrolled thread

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

Started byIan Kelly <ian.g.kelly@gmail.com>
First post2012-12-11 15:20 -0700
Last post2012-12-11 15:20 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#34653 — Re: ANNOUNCE: Thesaurus - a recursive dictionary subclass using attributes

FromIan Kelly <ian.g.kelly@gmail.com>
Date2012-12-11 15:20 -0700
SubjectRe: ANNOUNCE: Thesaurus - a recursive dictionary subclass using attributes
Message-ID<mailman.748.1355264442.29569.python-list@python.org>
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?

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web