[Python-Dev] Augmented assignment

M.-A. Lemburg mal@lemburg.com
Fri, 16 Jun 2000 21:45:16 +0200


Paul Prescod wrote:
> > Augmented assignments are unPythonic because they don't add any new
> > functionality to the language.  From what I've seen, all people,
> > who ever missed it, were experienced C-programmers.
> 
> That's true, but we should not be ashamed to steal good ideas from other
> languages. Probably the only people who would miss __getattr__ would be
> SmallTalk programmers and the original proponents of the various
> operator overloading features may well have come from C++.

Don't forget the crowd of people doing environmental acquisition
(you know who they are ;-).

Honestly, I think that __getattr__ is one of the most useful
hooks available on Python objects.

-- 
Marc-Andre Lemburg
______________________________________________________________________
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/