[docs] Documentation bug report

Alejandro Zazueta alex_zaz at hotmail.com
Mon Apr 15 01:45:42 EDT 2019


Oh, ok, I understand. Thanks for your explanation, I can see what you mean now.
Sorry for the mistake. I apologize.

Alex.


________________________________
From: Berker Peksağ <berker.peksag at gmail.com>
Sent: Sunday, April 14, 2019 5:48 PM
To: Alejandro Zazueta
Cc: docs at python.org
Subject: Re: [docs] Documentation bug report

On Sun, Apr 14, 2019 at 5:40 PM Alejandro Zazueta <alex_zaz at hotmail.com> wrote:
> It seems that the following example:
>
> >>> [x, x**2 for x in range(6)]
>   File "<stdin>", line 1, in <module>
>     [x, x**2 for x in range(6)]
>
> Is missing the parentheses for the tuple.

Hi Alex,

Thank you for your report! The point of the example is to show that it
is invalid Python code. See the comment above the example:

# the tuple must be parenthesized, otherwise an error is raised

--Berker
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20190415/912cbb98/attachment.html>


More information about the docs mailing list