iter(callable, sentinel)

Simon Forman rogue_pedro at yahoo.com
Thu Jul 27 14:07:01 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

Also, FWIW, GvR said this (parenthetically) about a week ago on the
Python-3000 list: "I also think that the two-argument form
iter(function, sentinel) is not very successful or useful and might be
dropped, but that's a separate issue."




More information about the Python-list mailing list