re compiled object result caching?

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Wed Aug 29 18:16:38 EDT 2007


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



More information about the Python-list mailing list