End of file
Bengt Richter
bokr at oz.net
Mon Oct 11 04:38:46 EDT 2004
On Sun, 10 Oct 2004 21:57:27 -0700, "Robert Brewer" <fumanchu at amor.org> wrote:
[...]
>Bengt Richter:
[...]
>> OTOH, making a thing to hang attributes on is a one liner=20
>> (though if you want more than one instance, class Record: pass;
>> rec=3DRecord() is probably better.
>
>Or even:
>
>class Record(object): pass
>rec =3D Record()
>
>Is there some reason people consistently don't use new-style classes? :(
>
typing fatigue? I normally do, but slipped up there. Probably general fatigue,
given the botch density in that post ;-/
Maybe I will start putting __metaclass__=type at the top of sources...
Regards,
Bengt Richter
More information about the Python-list
mailing list