<div dir="ltr">Hi,<div><br></div><div>Glyph pointed this out to me here: <a href="http://twistedmatrix.com/pipermail/twisted-python/2017-January/031106.html">http://twistedmatrix.com/pipermail/twisted-python/2017-January/031106.html</a></div><div><br></div><div>If I do this on Python 3.6:</div><div><br></div><div><span style="font-size:12.8px">>>  [(yield 1) for x in range(</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">10)]</span><br></div><div><span style="font-size:12.8px"><generator object <listcomp> at 0x10cd210f8></span><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">If I understand this: <a href="https://docs.python.org/3/reference/expressions.html#list-displays">https://docs.python.org/3/reference/expressions.html#list-displays</a></span></div><div><span style="font-size:12.8px">then this is a list display and should give a list, not a generator object.</span></div><div><span style="font-size:12.8px">Is there a bug in Python, or does the documentation need to be updated?</span></div><div><br></div><div>--</div><div>Craig</div></div>