repeatList = list(repeatSet)
ras1 = arcpy.sa.ExtractByAttributes(inraster, 'VALUE IN (' + str(repeatList
    ).strip('[]') + ')')
ArcGIS 10 python - Conditional statement checking to see if a raster value is in a set