Script ending at loop

Discussion created by GEOlson86 on Jun 23, 2014
Latest reply on Jun 23, 2014 by recurvata
I'm having an issue getting a loop to run in my map.  Something as simple as just trying to print "yay" won't iterate.  Here's what I have to even a test that I can't get to run.  Am I missing something?

mxd = arcpy.mapping.MapDocument("Current")
mapLyr1 = arcpy.mapping.ListLayers(mxd, "sampleLayer") [0]
cursor = arcpy.SearchCursor(mapLyr1)
for row in cursor:
 print "yay"