AnsweredAssumed Answered

Version 10.0 search cursor not resetting?

Question asked by harrybowman on Jul 16, 2012
Latest reply on Jul 17, 2012 by mdenil
Running in 10.0. Was trying to reset a search cursor in some code, and it didn't work. Tried this little snippet, and it didn't work either.

cur = arcpy.SearchCursor("c1") row = cur.next() while row:  print row.getValue("FID")  row = cur.next() cur.reset() row = cur.next() print row.getValue("FID")


The last print statement returns an error, saying the row is NoneType object. I was expecting the cursor to reset and respond to next. What did I do wrong?

Outcomes