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")  cursor = arcpy.SearchCursor(mapLyr1) for row in cursor: print "yay"