Assignment-in-conditional

Fredrik Lundh fredrik at pythonware.com
Thu Aug 31 14:48:29 EDT 2006


xamdam wrote:

> I am not sure if this came up before, but I would love to have an
> 'assignment-in-conditional' form in python, e.g

it's a FAQ, so it has probably come up before:

http://pyfaq.infogami.com/why-can-t-i-use-an-assignment-in-an-expression

</F>




More information about the Python-list mailing list