I frequently find myself in Python debug mode, trying to examine the fields of a layer or table.
arcpy.Describe(lyr).fields returns an array of which isn't much use.
About 10 times a day I find myself typing this:
flds = []for fld in arcpy.Describe(lyr).fields: flds.append(fld.name)
Is there a faster way to obtain a readable listing of the layer or table's fields in arcpy?
أكثر...
arcpy.Describe(lyr).fields returns an array of which isn't much use.
About 10 times a day I find myself typing this:
flds = []for fld in arcpy.Describe(lyr).fields: flds.append(fld.name)
Is there a faster way to obtain a readable listing of the layer or table's fields in arcpy?
أكثر...