Class or Dictionary?

Martin De Kauwe mdekauwe at gmail.com
Sat Feb 12 21:20:00 EST 2011


On Feb 13, 5:12 am, Terry Reedy <tjre... at udel.edu> wrote:
> On 2/12/2011 1:24 AM, Martin De Kauwe wrote:
>
> > The point of this posting was just to ask those that know, whether it
> > was a bad idea to use the class object in the way I had or was that
> > OK? And if I should have just used a dictionary, why?
>
> Did you miss my suggestion to use a module rather than a class?
> Modules do not have some of the disadvantages of classes listed by J. Nagle.
>
> --
> Terry Jan Reedy

Hi, sorry I did. I just re-read it, could you provide an example?
Sorry i am having a major mind blank this morning (I think this is
obvious!?). And it would meet all of the criteria outlined by John
Nagle?



More information about the Python-list mailing list