[Python-au] Python New Class Features
Anthony Baxter
Anthony Baxter <anthony@interlink.com.au>
Fri, 17 Jan 2003 16:58:19 +1100
>>> Andrew Bennetts wrote
> On Fri, Jan 17, 2003 at 03:57:17PM +1100, Graeme Matthew wrote:
> >
> > So would all of you agree that using slots to make sure the correct
> > attributes are accessed and no additional attributes would be the way to go
> > ?
>
> I'd say no :)
[...]
> This is largely a matter of personal preference, I guess, but my usual
> inclination is to do the least amount of work :)
I use slots in this way in a couple of places - it is a cheap/lazy way to
prevent typos. But it's a personal preference thing, sure.
Anthony
--
Anthony Baxter <anthony@interlink.com.au>
It's never too late to have a happy childhood.