Two other ways to get a list of OIDs of selected records (method #2 is the best BTW):#Method1: Must have a selection on the feature layer for this to work... but works in any versionfc = r"C:\csny490\overlay_20130620\gis_layers\county.gdb\county"
arcpy.MakeFeatureLayer_management(fc, "fl")
arcpy.SelectLayerByAttribute_management("fl", "NEW_SELECTION", "COUNTY_CD > 10")
oidList = [int(oid) for oid in arcpy.Describe("fl").FIDSet.split(";")]
#Method2: Uber fast! Works with a feature layer with a definition query and/or selected set... but only in v10.1+!fc = r"C:\csny490\overlay_20130620\gis_layers\county.gdb\county"
arcpy.MakeFeatureLayer_management(fc, "fl", "COUNTY_CD > 10")
oidList = [oid[0] for oid in arcpy.da.SearchCursor("fl",["OID@"])]