Hi,
I have a very simple question in regards to the del cursor. I use it from time to time but I have not thought about it.
When is the del cursor used? I have a sample script with a del cursor but I am not sure if I used it in the right manner.
edit.startEditing(False, True)
edit.startOperation()
with updateLines as cursor:
for row in updateLines:
if row[0] in UpdateIsolatedIDs_Lines:
IsolationID = UpdateIsolatedIDs_Lines[row[0]]
print (row)
#print (IsolationID)
if IsolationID:
row[0] = row[0]
row[1] = IsolationID
row[2] = row[2]
updateLines.updateRow(row)
print (row)
print ('\n')
del cursor
edit.stopOperation()
edit.stopEditing(True)I am not sure if the del cursor is used properly but I just wanted to ask.