things I wish python could do
David Eppstein
eppstein at ics.uci.edu
Fri May 14 11:54:59 EDT 2004
In article <2gjoq5F3mvvdU2 at uni-berlin.de>,
Michael Walter <cm at leetspeak.org> wrote:
> > Couldn't a = 10 still be an expression despite the syntax? Or at least
> > behave like one, i.e. yield a result, probably 10 or None...
> I would think so -- even in C(++) it's possible to write:
>
> a = b = 10;
It's possible to write that in Python, too, but nevertheless in Python
the "b = 10" part isn't an expression.
--
David Eppstein http://www.ics.uci.edu/~eppstein/
Univ. of California, Irvine, School of Information & Computer Science
More information about the Python-list
mailing list