On May 27, 2014, at 1:58 AM, Serhiy Storchaka <storch...@gmail.com> wrote:

> Perhaps it is worth to add simple comment explaining why this is not 
> equivalent to just list(zip(it, range(n))). Otherwise it can be 
> unintentionally "optimized" in future.

FWIW, that is covered by the test cases.
If you substitute list(zip(it, range(n))), the tests fail.


Raymond
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to