why no ++?
Marcin 'Qrczak' Kowalczyk
qrczak at knm.org.pl
Tue Aug 14 16:10:57 EDT 2001
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
--
__("< Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
\__/
^^ SYGNATURA ZASTĘPCZA
QRCZAK
More information about the Python-list
mailing list