Ivan Levkivskyi <levkivs...@gmail.com> added the comment:

Mariatta,

> While I understand why it behaves the way it is now, but it seems wrong 
> behavior. Perhaps we should look into finding a solution.

I am all in favour of dropping implicit function scope in comprehensions 
(mostly because of weirdness like described here, but it will also fix some 
`yield` issues and simplify some `await` aspects). But I was not able to 
convince others it worth the effort. Maybe we can make another attempt at 
discussing this?

----------
nosy: +gvanrossum, levkivskyi, serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue3692>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to