Algorithmic complexity of len (list)?

Peter Otten __peter__ at web.de
Tue Jul 6 16:43:19 EDT 2004


Roy Smith wrote:

> (or even idempotently, it would appear).  If they didn't think getting
> the length of an iterator was important, then maybe they didn't think
> getting the length of a list was important either.

They might think *not* getting the length of an iterator is important.

Peter




More information about the Python-list mailing list