Assignment in a while?

Paul Boddie paul at boddie.org.uk
Sun Apr 2 15:02:24 EDT 2006


none/Ben wrote:
>
> Assignment within a while loop seems like a pretty standard thing, so I'm just
> curious what I'm missing.

The FAQ on this subject? ;-)

http://www.python.org/doc/faq/general/#why-can-t-i-use-an-assignment-in-an-expression

It's "standard" in C-flavoured languages, certainly, but probably not
ubiquitous.

Paul




More information about the Python-list mailing list