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/2005-October/057191.html below:

[Python-Dev] problem with genexp

[Python-Dev] problem with genexp [Python-Dev] problem with genexpJeremy Hylton jeremy at alum.mit.edu
Tue Oct 11 15:40:56 CEST 2005
On 10/11/05, Nick Coghlan <ncoghlan at gmail.com> wrote:
> Neal Norwitz wrote:
> > There's a problem with genexp's that I think really needs to get
> > fixed.  See http://python.org/sf/1167751 the details are below.  This
> > code:
> > I agree with the bug report that the code should either raise a
> > SyntaxError or do the right thing.
>
> I agree it should be a SyntaxError - I believe the AST compiler actually
> raises one in this situation.

Could someone add a test for this on the AST branch?

BTW, it looks like doctest is the way to go for SyntaxError tests. 
There are older tests, like test_scope.py, that use separate files
with bad syntax (and lots of extra kludges in the infrastructure to
ignore the fact that those .py files can't be compiled).

Jeremy
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