Re: iter(callable, sentinel)

2006-07-27 Thread Simon Forman
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 > > --

Re: iter(callable, sentinel)

2006-07-27 Thread Simon Forman
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 > > --

Re: iter(callable, sentinel)

2006-07-27 Thread Simon Forman
t; > Thanks, > > Will McGugan > > -- > work: http://www.kelpiesoft.com > blog: http://www.willmcgugan.com I just found out about that recently too. help(iter) shows this: Help on built-in function iter in module __builtin__: iter(...) iter(collection) -> iterator iter

iter(callable, sentinel)

2006-07-27 Thread Will McGugan
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: