[docs] [issue13549] Incorrect nested list comprehension documentation

Ezio Melotti report at bugs.python.org
Tue Dec 13 14:43:22 CET 2011

Ezio Melotti <ezio.melotti at gmail.com> added the comment:

On a side note, using:
>>> [x, x**2 for x in range(6)]
  File "<stdin>", line 1
    [x, x**2 for x in range(6)]
SyntaxError: invalid syntax

In the 3.x docs seems to break the hightlight.
With 'File "<stdin>", line 1, in ?' the highlight works fine, so that's what I used.

resolution:  -> fixed
stage: commit review -> committed/rejected
status: open -> closed
type: behavior -> enhancement

Python tracker <report at bugs.python.org>

More information about the docs mailing list