In addition to this idea, I think it would also be useful if a SearchCursor could add or remove the current row from the existing selection set. I find myself building tools to perform custom logic per row with the intent of ending up with a selection set of the rows that meet some advanced criteria. Currently I typically build a list of OID's with a search cursor then go back and select those with the SelectByAttribute tool later, but this is somewhat cludgy, it would be really awesome to be able to have something like rows.selectionAdd() and rows.selectionRemove() which would select or unselect the current row as I cursor through the table.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.