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/2006-February/061801.html below:

[Python-Dev] problem with genexp

[Python-Dev] problem with genexp [Python-Dev] problem with genexpNeal Norwitz nnorwitz at gmail.com
Sat Feb 25 00:11:26 CET 2006
On 2/20/06, Jiwon Seo <seojiwon at gmail.com> wrote:
> Regarding this Grammar change;  (last October)
>      from   argument: [test '=' ] test [gen_for]
>      to      argument: test [gen_for] | test '=' test ['(' gen_for ')']
>
> - to raise error for "bar(a = i for i in range(10)) )"
>
> I think we should change it to
>      argument: test [gen_for] | test '=' test
>
> instead of
>      argument: test [gen_for] | test '=' test ['(' gen_for ')']
>
> that is, without ['(' gen_for ')'] . We don't need that extra term,
> because "test" itself includes generator expressions - with all those
> parensises.

Works for me, committed.

n
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