On 2018-03-23 06:01, Chris Angelico wrote:
Under the rejected "Special-casing comprehensions", you show "prefix-local-name-bindings": Name bindings that appear before the loop, like:
stuff = [(y, x/y) where y = f(x) for x in range(5)]
Please add mention of rejecting "postfix-local-name-bindings": Name bindings that happen after the loop. For example:
stuff = [(y, x/y) for x in range(5) where y = f(x)]
Since all the same reasoning applies to both prefix and postfix variations, maybe distinguishing between prefix and postfix can be done in the last paragraph of "Special-casing comprehensions".