On Wed, Jun 10, 2009 at 5:53 PM, Mensanator<mensana...@aol.com> wrote: > On Jun 10, 5:24 pm, David Wilson <d...@botanicus.net> wrote: >> Hi, >> >> 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. Cheers, Chris -- http://blog.rebertia.com -- http://mail.python.org/mailman/listinfo/python-list