Re: itertools.groupby
- From: Steve Howell <showell30@xxxxxxxxx>
- Date: Mon, 28 May 2007 14:50:01 -0700 (PDT)
--- Paul Rubin <"http://phr.cx"@NOSPAM.invalid> wrote:
But that is what groupby does, except its notion of
uniqueness is
limited to contiguous runs of elements having the
same key.
It occurred to me that we could also rename the
function uniq(), or unique(), after its Unix
counterpart, but then I though better of it. As one
of the folks who was making a bit of noise about the
groupby() semantics before, I'm really fine with the
name now that the docs make it a little more clear how
it behaves.
____________________________________________________________________________________
Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center.
http://autos.yahoo.com/green_center/
.
- References:
- Re: itertools.groupby
- From: Paul Rubin
- Re: itertools.groupby
- Prev by Date: Re: ten small Python programs
- Next by Date: Re: Tkinter error
- Previous by thread: Re: itertools.groupby
- Next by thread: Re: itertools.groupby
- Index(es):