On Wed, Nov 30, 2016 at 02:32:54PM -0600, Nick Timkovich wrote:
> a generator with known length that's not indexable (a rare beast?).

Not as rare as you might think:

>>> k = set(range(10))
>>> len(k)
10
>>> k[3]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  TypeError: 'set' object does not support indexing
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to