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." -- http://mail.python.org/mailman/listinfo/python-list