Antoine Pitrou wrote:
Solving the problem at hand would require carefully flagging StopIteration exceptions to know whether they were raised in an iterator implementation context or not, or even downright forbidding raising them in a non-iterator implementation context. It's a lot of complication for such a corner case.
Particularly when the current behaviour is trivial to explain given the expanded forms of the two expressions as nested functions.
Cheers, Nick. -- Nick Coghlan | [EMAIL PROTECTED] | Brisbane, Australia --------------------------------------------------------------- http://www.boredomandlaziness.org _______________________________________________ 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