A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-October/039660.html below:

[Python-Dev] PEP 289: Generator Expressions

[Python-Dev] PEP 289: Generator Expressions [Python-Dev] PEP 289: Generator ExpressionsAlex Martelli aleaxit at yahoo.com
Mon Oct 27 18:13:36 EST 2003
On Tuesday 28 October 2003 12:10 am, Guido van Rossum wrote:
> > Overall the pep is being well received.  The discussion has been
> > uncontentious and light (around 50-55 posts).
>
> Great!
>
> > There was occasional discussion about the parentheses requirement but
> > that was quickly settled also.  One idea that had some merit was to not
> > require the outer parentheses for a single expression on the rhs of an
> > assignment:
> >
> >     g = (x**2 for x in range(10))   # maybe the outer parens are not
> > needed
>
> I really think they should be required.  The 'for' keyword feels like
> it has a lower "priority" than the assignment operator.

I entirely agree with Guido: the assignment looks _much_ better to
me WITH the parentheses around the RHS.


Alex


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4