<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Simple string problem in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/simple-string-problem/m-p/308779#M24039</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; I think you would want to change it to:&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; &lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Exclude&amp;nbsp;&amp;nbsp;&amp;nbsp; = ['shape_area','shape_length','globalid','&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;s&lt;/SPAN&gt;hape.len']
&lt;/PRE&gt; &lt;BR /&gt; &lt;BR /&gt;You had the 'S' capitalized, but in your list comprehension you are casting all field names to lower case for matching.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OMG, I so wish I could delete threads....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 14:46:19 GMT</pubDate>
    <dc:creator>StormwaterWater_Resources</dc:creator>
    <dc:date>2021-12-11T14:46:19Z</dc:date>
    <item>
      <title>Simple string problem</title>
      <link>https://community.esri.com/t5/python-questions/simple-string-problem/m-p/308777#M24037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can't believe I'm posting for this, it has to be something really stupid that I'm missing.&amp;nbsp; I have the following:&lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;Exclude&amp;nbsp;&amp;nbsp;&amp;nbsp; = ['shape_area','shape_length','globalid','Shape.len'] field_list = [f.name for f in arcpy.ListFields(in_fc) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if f.name.lower() not in Exclude]&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The in_fc that I'm feeding it has both a GlobalID field and a Shape.len field.&amp;nbsp; At the end of the code above field_list does not contain GlobalID, but it does contain Shape.len.&amp;nbsp; 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).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I missing here?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2013 12:59:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/simple-string-problem/m-p/308777#M24037</guid>
      <dc:creator>StormwaterWater_Resources</dc:creator>
      <dc:date>2013-06-19T12:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Simple string problem</title>
      <link>https://community.esri.com/t5/python-questions/simple-string-problem/m-p/308778#M24038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you would want to change it to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Exclude&amp;nbsp;&amp;nbsp;&amp;nbsp; = ['shape_area','shape_length','globalid','shape.len']
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You had the 'S' capitalized, but in your list comprehension you are casting all field names to lower case for matching.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:19:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/simple-string-problem/m-p/308778#M24038</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T16:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Simple string problem</title>
      <link>https://community.esri.com/t5/python-questions/simple-string-problem/m-p/308779#M24039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; I think you would want to change it to:&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; &lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Exclude&amp;nbsp;&amp;nbsp;&amp;nbsp; = ['shape_area','shape_length','globalid','&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;s&lt;/SPAN&gt;hape.len']
&lt;/PRE&gt; &lt;BR /&gt; &lt;BR /&gt;You had the 'S' capitalized, but in your list comprehension you are casting all field names to lower case for matching.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OMG, I so wish I could delete threads....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:46:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/simple-string-problem/m-p/308779#M24039</guid>
      <dc:creator>StormwaterWater_Resources</dc:creator>
      <dc:date>2021-12-11T14:46:19Z</dc:date>
    </item>
  </channel>
</rss>

