[Python-ideas] Statement local functions and classes (aka PEP 3150 is dead, say 'Hi!' to PEP 403)

Terry Reedy tjreedy at udel.edu
Wed Oct 19 11:43:39 CEST 2011


On 10/19/2011 2:44 AM, David Townshend wrote:
> Regarding out of order execution: how is pep 3150 any worse than "x = y
> if z else w"?

A lot of people did not like that version of a conditional expression 
and argued against it. If it is used to justify other backwards 
constructs, I like it even less.

> On the other hand, I have read countless scientific papers which define
> functions along the lines of "this phenomenon can be represented by the
> equation x=2sin(yz), where x is the natural frequency, y is the height
> of the giraffe and z is the number of penguins".  Just saying...

That works once in a while, in a sentence. An important different is 
that assignment actions are different from equality (identity) statements.

-- 
Terry Jan Reedy




More information about the Python-ideas mailing list