[issue6673] Uncaught comprehension SyntaxError eats up all memory
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Serhiy Storchaka <storchaka+cpython@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 <report@bugs.python.org> <https://bugs.python.org/issue6673> _______________________________________
participants (1)
-
Serhiy Storchaka