From: "Guido van Rossum" <[EMAIL PROTECTED]>
To be sure, IMO the generator expression is wrong in interpreting the
StopIteration exception! It should fail the same way the list
comprehension fails.

When exercising 2-to-3 on Zodb at the EuroPython sprints, we also found another oddity. This code works in 2.6 but fails in 3.0 (it looks for the free variable in the global scope instead of the enclosing local scope):

class A(object):
   v = 8
   x = [v for i in range(6)]



Raymond



_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to