AnsweredAssumed Answered

Clarifying when cursor locks are released

Question asked by kalley on Mar 12, 2013
Latest reply on Apr 3, 2013 by lgtateos
Does the following line of code "release" the cursor? 
#Note: rdsmall_lyr has a single selected feature rdsmall_values = sorted(arcpy.da.SearchCursor(rdsmall_lyr, ["UA", "FAID_S", "CTCODE", "RTNUMBER", "AOTCLASS"]))

The help pages state that a cursor can be released by the completion of the cursor (http://resources.arcgis.com/en/help/main/10.1/index.html#//002z0000001q000000), but I'm not very confident in my understanding of an implicit release.  Any insight would be greatly appreciated! 
I do have an alternative approach that I'm confident tidies up after itself (below), but am hoping I can get away with the simpler code.
with arcpy.da.SearchCursor(rdsmall_lyr, ["UA", "FAID_S", "CTCODE", "RTNUMBER", "AOTCLASS"]) as road_cur:     rdsmall_values = sorted(road_cur)

Outcomes