Re: [Python-Dev] Tricky way of of creating a generator via a comprehension expression

2017年11月23日 14:32:52 -0800

Guido van Rossum wrote:
the extra scope is now part of the language definition. It can't be removed as a "bug fix".
Does anyone actually rely on the scope-ness of comprehensions
in any way other than the fact that it prevents local variable
leakage?
If not, probably nobody would notice if it were changed back.
--
Greg
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to