[Python-Dev] problem with genexp

Nick Coghlan ncoghlan at gmail.com
Tue Oct 11 12:06:31 CEST 2005


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.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://boredomandlaziness.blogspot.com


More information about the Python-Dev mailing list