My script ArcGIS 10.2 is using the searchcursor to read the mLanduse feature class to return the value in lField, but it is only returning the first value in lField to populate the sField in mSoils. Is my cursor2.updateRow in the wrong spot?
<SPAN class="com"># Create a cursor on a feature class</SPAN>
with arcpy.da.SearchCursor(<SPAN class="pln">mLanduse</SPAN><SPAN class="pun">,</SPAN><SPAN class="pln"> lField</SPAN><SPAN class="pun"></SPAN>) as cursor:
<SPAN class="com"># Loop through the rows and update the blank sField values in mSoils </SPAN><SPAN class="pln"></SPAN><SPAN class="com">with the lField values from mLanduse</SPAN>
for row in cursor:
with arcpy.da.UpdateCursor(<SPAN class="pln">mSoils</SPAN><SPAN class="pun">,</SPAN><SPAN class="pln"> sField</SPAN>) as cursor2:
for row2 in cursor2:
if row2[0] == ' ':
row2[0] = row[0]
else:
row2[0] = ' '
cursor2.updateRow(row2)