[docs] [issue6673] Uncaught comprehension SyntaxError eats up all memory

Serhiy Storchaka report at bugs.python.org
Wed May 9 04:40:47 EDT 2018

Serhiy Storchaka <storchaka+cpython at 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 at bugs.python.org>

More information about the docs mailing list