Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment: "yield" in comprehensions is deprecated in 3.7:
../issue6673.py:22: DeprecationWarning: 'yield' inside list comprehension target.send([ (yield) for i in range(chunk_size) ]) and an error in 3.8: File "../issue6673.py", line 22 target.send([ (yield) for i in range(chunk_size) ]) ^ SyntaxError: 'yield' inside list comprehension ---------- nosy: +serhiy.storchaka resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> yield expression inside generator expression does nothing _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue6673> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com