Explicit Frustration of the Self

Andrew Koenig ark at research.att.com
Tue Dec 31 11:19:32 EST 2002


> What of elegance?

> class Life:
> 	property = "value"
> def Meaning(self, argument):
> 		return self.property

> This whole business with the self; it is not elegant.  And, it is of
> my opinion that it is, therefore, not good programming.  So I'm
> angry, because most of Python is so easy, so elegant, and this
> ain't.

How would you like to be able to write it instead?  Show us some
examples.  Whatever you come up with, I'll bet it will be possible
to find even greater problems.

-- 
Andrew Koenig, ark at research.att.com, http://www.research.att.com/info/ark



More information about the Python-list mailing list