Steve R. Hastings wrote: > If Python doesn't currently optimize this case, is there any chance this > optimization could be added?
I was just asking about this, and apparently it will be changed in 3.0: Built-in Namespace * Make built-ins return an iterator where appropriate (e.g. range(), zip(), etc.) To be removed: * xrange(): use range() instead [1] -- http://mail.python.org/mailman/listinfo/python-list