Augmented Assignement (was: Re: PEP scepticism)

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Sun Jul 1 00:38:36 CEST 2001


Sat, 30 Jun 2001 15:47:36 +0200, Alex Martelli <aleaxit at yahoo.com> pisze:

>> > + operation is different for different A type.
>>
>> But it never modifies A,
> 
> "Never?  Well, *hardly* ever" (music by Lord Sullivan, of course).

Never under a sane design.

>> I treat as a wart the fact that augmented assignment has a subtle
>> difference between mutable and immutable objects.
> 
> I do not consider polymorphism a wart, not even when it lets
> you write horrid code as in "class sic" above.

I don't consider polymorphism itself a wart, but this particular
misuse of it.

-- 
 __("<  Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK



More information about the Python-list mailing list