Greg Ewing <greg.ewing <at> canterbury.ac.nz> writes: > > This seems like a lot of trouble to go to in order to > fix a rather obscure problem. Is it really a serious > enough problem in practice? Anyone have any real-life > stories about this?
Agreed. I think it is ok for some behaviours to be unspecified and seemingly "inconsistent" if one goes beyond the prescripted use of certain constructs. One classical example is: >>> 1+1 is 1+1 True >>> 1000+1000 is 1000+1000 False 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. _______________________________________________ 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