Odd name shadowing in comprehension
eryk sun
eryksun at gmail.com
Sun Oct 23 05:56:46 EDT 2016
More information about the Python-list mailing list
Sun Oct 23 05:56:46 EDT 2016
- Previous message (by thread): Odd name shadowing in comprehension
- Next message (by thread): Odd name shadowing in comprehension
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, Oct 23, 2016 at 6:15 AM, Steve D'Aprano <steve+python at pearwood.info> wrote: > On Sun, 23 Oct 2016 01:15 pm, eryk sun wrote: > >> I meant the behavior seems to have been copied to align with generator >> expressions, even though the cited rationale doesn't apply. I'm not >> saying this is wrong. It's useful that the expression for the outer >> iterator is evaluated in the defining scope. However, it's only >> documented for generator expressions, in 6.2.8. The documentation for >> comprehensions in 6.2.4 makes no mention of it. > > 6.2.8? 6.2.4? What are these references to? They're section numbers in the Python 3 language reference. Chapter 6 covers expressions. https://docs.python.org/3/reference/expressions
- Previous message (by thread): Odd name shadowing in comprehension
- Next message (by thread): Odd name shadowing in comprehension
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list