[Python-Dev] Informal educator feedback on PEP 572 (was Re: 2018 Python Language Summit coverage, last part) (original) (raw)
Steven D'Aprano steve at pearwood.info
Mon Jul 2 11:36:28 EDT 2018
- Previous message (by thread): [Python-Dev] Naming comprehension syntax [was Re: Informal educator feedback on PEP 572 ...]
- Next message (by thread): [Python-Dev] PEP 544 (Protocols): adding a protocol to a class post-hoc
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): [Python-Dev] Naming comprehension syntax [was Re: Informal educator feedback on PEP 572 ...]
- Next message (by thread): [Python-Dev] PEP 544 (Protocols): adding a protocol to a class post-hoc
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]