Quick survey: locals in comprehensions (Python 3 only)

Steven D'Aprano steve+comp.lang.python at pearwood.info
Sun Jun 24 01:22:06 EDT 2018


On Sun, 24 Jun 2018 15:18:49 +1000, Chris Angelico wrote:

> Personally, I think it should give you [1, 2], the two values from the
> function's locals.

Thank you, that's the sort of answer I'm looking for.

(I'm not saying I didn't read your long and involved analysis, only that 
I'm not looking for long involved analyses at the moment :-)


-- 
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson




More information about the Python-list mailing list