I am trying to create a Cursor that goes through a selection process and stops looping when only one feature is selected. Basically, as the Cursor loops it subsets a selection, and instead of going through every row of the table I'd like to save time and stop the Cursor when one item is selected. So it would look something like this:
for row in rows:
... (selecting process) ...
if [number of features selected] = 1:
[stop cursor]
else:
rows.updateRow(row)
del row, rows
Any advice? I can't seem to even find any way to stop a cursor other than deleting it but I don't think I could do that type of command from within the cursor itself.
... (selecting process) ...
inside of the loop?