count items in generator

Paul Rubin http
Sun May 14 13:21:49 EDT 2006


claird at lairds.us (Cameron Laird) writes:
> For that matter, would it be an advantage for len() to operate
> on iterables?

   print len(itertools.count())

Ouch!!



More information about the Python-list mailing list