You can do this: rows = [row for row in row1 if not row.id in row2.as_dict()]
On Sunday, 9 June 2013 18:15:03 UTC-5, webpypy wrote: > > Hi, > > How an I do intersection? > > The manual says: > > > Row objects can be combined at the Python level. Here we assume: > > >>> print rows1person.name > Max > Tim > >>> print rows2person.name > John > Tim > > You can do a union of the records in two set of rows: > > >>> rows3 = rows1 & rows2 > >>> print rows3 > name > Max > Tim > John > Tim > > You can do a union of the records removing duplicates: > > >>> rows3 = rows1 | rows2 > >>> print rows3 > name > Max > Tim > John > > > > Regards, > > Ashraf > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

