Re: can't generate list from iterator

2011-09-09 Thread Dr. Phillip M. Feldman
The title should have been can't generate list from iterator. -- View this message in context: http://old.nabble.com/can%27t-generate-iterator-from-list-tp32435519p32435569.html Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org/mailman/listinfo

Re: can't generate list from iterator [was: can't generate iterator from list]

2011-09-09 Thread Steven D'Aprano
Dr. Phillip M. Feldman wrote: It is supposed to be possible to generate a list representation of any iterator that produces a sequence of finite length, but this doesn't always work. Here's a case where it does work: Input: from itertools import combinations