why no ++?

Delaney, Timothy tdelaney at avaya.com
Tue Aug 14 20:44:46 EDT 2001


> > 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 just evil.

Tim Delaney




More information about the Python-list mailing list