Vedran Čačić <ved...@gmail.com> added the comment: It refers to the sentence
"""The result will be a new list resulting from evaluating the expression in the context of the for and if clauses which follow it. """ The expression at the start of listcomp is the one that's evaluated in the context of clauses following it, no matter what kind of expression it is. If it is another listcomp, then you have a nested listcomp, but that's just a nonspecial case. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41591> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com