14 Sep
2008
14 Sep
'08
11:34 p.m.
If I understand this right, then this would become legal too: x = if cond(a): return b So what value is assigned to x when cond(a) is True, what value when it is False? What value does return return? The thing is that return does definitively not return anything, but as a statement, it can be placed everywhere in a block. -panzi