On Wed, 29 Aug 2007 21:54:50 +0000, Dan Stromberg - Datallegro wrote:

> I've long felt that publicly accessible attributes probably should be
> syntactic sugared to look like accessor methods, a bit like how __add__
> ends up being + - so that if your attribute ever needs to become methods
> (say, it started out life as a unidimensional thing, but later needs to
> be a flattening of 3 dimensions or something), you won't necessarily need
> to change depenent code.

Maybe you should read about the `property()` function.

Ciao,
        Marc 'BlackJack' Rintsch
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to