I want to step through some data in a search cursor and create a new list with a name based off one of the attributes.
The code below will return SyntaxError: can't assign to function call. Any ideas how to do this?
Same thing happens when I try to convert the result to a string.
The code below will return SyntaxError: can't assign to function call. Any ideas how to do this?
Code:
infc = mydata
cursor = arcpy.SearchCursor(infc)
for row in cursor:
row.getValue("Name") = []
Code:
infc = mydata
cursor = arcpy.SearchCursor(infc)
for row in cursor:
str(row.getValue("Name")) = []