iter(callable, sentinel)

Simon Forman rogue_pedro at yahoo.com
Thu Jul 27 14:03:02 EDT 2006


Will McGugan wrote:
> Hi,
>
> I've been using Python for years, but I recently encountered something
> in the docs I wasnt familar with. That is, using two arguements for
> iter(). Could someone elaborate on the docs and maybe show a typical use
> case for it?
>
>
> Thanks,
>
> Will McGugan
>
> --
> work: http://www.kelpiesoft.com
> blog: http://www.willmcgugan.com

D'oh!  You said *elaborate*...  Sorry.  Fredrik Lundh gives a great
example of it's use in this thread:
http://groups.google.ca/group/comp.lang.python/browse_frm/thread/b3ab8141c492bb21/e3f71597917afaa3

Peace,
~Simon




More information about the Python-list mailing list