[Python-Dev] Informal educator feedback on PEP 572 (was Re: 2018 Python Language Summit coverage, last part)

Steven D'Aprano steve at pearwood.info
Mon Jul 2 11:36:28 EDT 2018


On Wed, Jun 27, 2018 at 03:31:42PM -0700, Guido van Rossum wrote:

> I'd also like to keep the rule prohibiting use of the same name as a
> comprehension loop control variable and as an inline assignment target;
> this rule would also prohibit shenanigans with nested comprehensions (for
> any set of nested comprehensions, any name that's a loop control variable
> in any of them cannot be an inline assignment target in any of them). This
> would also apply to the "outermost iterable".

+1


-- 
Steve


More information about the Python-Dev mailing list