arcpy.ListFields() method for various purposes and usually the only fields that I need are the ones added by the users.
ListFields lists all fields including the ones comes in by default with any feature classes (e.g., OBJECTID, FID, Shape, SHAPE_Area, etc.), and I was wondering if there is an elegant way of omitting these fields from listing.
I can do, for example for GDB feature classes,
[f.name for f in arcpy.ListFields("sample_fc") if f.type not in ["OID","Geometry"] or f.name.upper() not in ["SHAPE_AREA", "SHAPE_Length"]]
but this does not save me from getting "SHAPE_Area1" or other variants of inherited fields in the list.