why no ++?
Aahz Maruch
aahz at panix.com
Fri Aug 17 01:10:05 EDT 2001
In article <slrn.pl.9nj1eh.5k4.qrczak at qrnik.zagroda>,
Marcin 'Qrczak' Kowalczyk <qrczak at knm.org.pl> wrote:
>Tue, 14 Aug 2001 10:20:50 +0200, Alex Martelli <aleax at aleax.it> pisze:
>>
>> So now consider:
>>
>> y.a = b,c,d = x.e = wower()
>>
>> How would you like to rewrite _this_?-) There is *NO* rewrite
>> that ensures constant semantics except by introducing _another_
>> temporary variable -- *yecch*!-)
>
>y.a, (b,c,d), x.e = [wower()] * 3
That's sick, twisted, and actually easier to understand, IMHO.
--
--- Aahz <*> (Copyright 2001 by aahz at pobox.com)
Hugs and backrubs -- I break Rule 6 http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het Pythonista
"Nothing fails like prayer" --bumper snicker
More information about the Python-list
mailing list