[Python-Dev] Augmented assignment
Jeremy Hylton
jeremy@beopen.com
Fri, 16 Jun 2000 16:01:18 -0400 (EDT)
I'm leery of acquisition, but we gotta have __getattr__.
Jeremy
>>>>> "MAL" == M -A Lemburg <mal@lemburg.com> writes:
MAL> 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++.
MAL> Don't forget the crowd of people doing environmental
MAL> acquisition (you know who they are ;-).
MAL> Honestly, I think that __getattr__ is one of the most useful
MAL> hooks available on Python objects.