Re: ANNOUNCE: Thesaurus - a recursive dictionary subclass usingattributes

Discussion in 'Python' started by Ian Kelly, Dec 11, 2012.

  1. Ian Kelly

    Ian Kelly Guest

    On Tue, Dec 11, 2012 at 2:53 PM, Ian Kelly <> 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?
    Ian Kelly, Dec 11, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jason Friedman
    Replies:
    0
    Views:
    110
    Jason Friedman
    Dec 11, 2012
  2. Ian Kelly
    Replies:
    0
    Views:
    131
    Ian Kelly
    Dec 11, 2012
  3. Dave Cinege
    Replies:
    0
    Views:
    162
    Dave Cinege
    Dec 11, 2012
  4. Ian Kelly
    Replies:
    0
    Views:
    151
    Ian Kelly
    Dec 11, 2012
  5. Dave Cinege
    Replies:
    0
    Views:
    140
    Dave Cinege
    Dec 11, 2012
Loading...

Share This Page