[Python-au] Python New Class Features

Andrew Bennetts andrew-pythonau@puzzling.org
Fri, 17 Jan 2003 17:13:34 +1100


On Fri, Jan 17, 2003 at 04:58:19PM +1100, Anthony Baxter wrote:
> 
> >>> 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.

I use pychecker as an even cheaper and easier way to do the same thing ;)

-Andrew.