clp2 at rebertia.com
Wed Jun 10 22:05:06 EDT 2009
On Wed, Jun 10, 2009 at 5:53 PM, Mensanator<mensanator at aol.com> wrote:
> On Jun 10, 5:24 pm, David Wilson <d... at botanicus.net> wrote:
>> During a fun coding session yesterday, I came across a problem that I
>> thought was already solved by itertools, but on investigation it seems
>> it isn't.
>> The problem is simple: given one or more ordered sequences, return
>> only the objects that appear in each sequence, without reading the
>> whole set into memory. This is basically an SQL many-many join.
> Why not use SQL?
Agreed. I seem to recall the last person asking for such a function
wanted to use it to combine SQL results.
More information about the Python-list