rows1.records = [r for r in rows1.records if r in rows2.records] Anthony
On Monday, September 3, 2012 11:59:41 AM UTC-4, andrej burja wrote: > > what if i want newrows to contain only duplicates? > i want to display only rows which are in rows1 AND rows2 > > andrej > > On Tuesday, June 5, 2012 7:22:11 PM UTC+2, Anthony wrote: >> >> I think you can do: >> >> myrows.records.append(myrow) >> >> Note, I don't think this is part of the documented API, so probably not >> guaranteed to remain backward compatible (though I doubt it will change). >> >> You can also join two Rows objects: >> >> newrows = rows1 & rows2 >> newrows = rows1 | rows2 # this one removes duplicates from rows2 before >> combining >> >> Anthony >> >> On Tuesday, June 5, 2012 1:10:58 PM UTC-4, Umpei Kurokawa wrote: >>> >>> Is it possible to insert or append Row objects to Rows? >> >> --

