New syntax for blocks

Robert Latest boblatest at
Wed Nov 11 20:01:33 CET 2009

r wrote:
> Just thinking out loud here...what if variable assignments could
> return a value... hmmm? Not to them selfs of course but to a caller,
> like an if statement...
> if a=openfile:
>   # do something with a

That's like in C. I sometimes miss it in Python.


More information about the Python-list mailing list