(global) Class properties
mwh at python.net
Thu Mar 13 14:14:05 CET 2003
"Bjorn Pettersen" <BPettersen at NAREX.com> writes:
> Thought I'd share my attempt at defining class properties that behaved
> the way I think they should <wink>. I was hoping to create a class
> property, such that the following definitions:
> Of course, if anyone knows of a simpler approach I'm all ears :-)
That's the way I'd have done it too, if that's any comfort.
58. Fools ignore complexity. Pragmatists suffer it. Some can avoid
it. Geniuses remove it.
-- Alan Perlis, http://www.cs.yale.edu/homes/perlis-alan/quotes.html
More information about the Python-list