Chris Morton <chrisgmor...@yahoo.com> added the comment:
Is this change in behavior considered to be by design or is this issue an unintended consequence? It seems inconsistent that comprehensions have no visibility of variable previously defined in the same scoping for this particular use-case. Is there a way to work around this other than reworking the comprehension? It seems odd that [ci for ci in c] does not produce the error but [c for i in [1]] does produce the error. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43481> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com