AnsweredAssumed Answered

Simple string problem

Question asked by CCStormwater on Jun 19, 2013
Latest reply on Jun 19, 2013 by CCStormwater
I can't believe I'm posting for this, it has to be something really stupid that I'm missing.  I have the following:
Exclude    = ['shape_area','shape_length','globalid','Shape.len'] field_list = [ for f in arcpy.ListFields(in_fc)               if not in Exclude]

The in_fc that I'm feeding it has both a GlobalID field and a Shape.len field.  At the end of the code above field_list does not contain GlobalID, but it does contain Shape.len.  I tried (for no good reason other than voodoo) to raw (r'Shape.len') and unicode (u'Shape.len') the string to no effect (same for "" which my perl-centric brain forced me to do even though it knew better for Python).

What am I missing here?