<?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: Null in python? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/null-in-python/m-p/25203#M1902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Null What?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;None should work for Null pointers&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thing is an object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if&amp;nbsp; thing == None :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thing is a string&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;one thing about strings however is users sometimes put man blank charagers in a string. So it looks empty&amp;nbsp; but "" will fail.&amp;nbsp; So you need to check thing.len() == 0 first.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if thing == "":&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jun 2012 18:43:39 GMT</pubDate>
    <dc:creator>WilliamIde</dc:creator>
    <dc:date>2012-06-15T18:43:39Z</dc:date>
    <item>
      <title>Null in python?</title>
      <link>https://community.esri.com/t5/python-questions/null-in-python/m-p/25200#M1899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is the equivalent of "null" in python to clean the column in calculate field?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I try use "None" ,but without any effect.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 11:29:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/null-in-python/m-p/25200#M1899</guid>
      <dc:creator>BartłomiejStaroń</dc:creator>
      <dc:date>2012-06-15T11:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Null in python?</title>
      <link>https://community.esri.com/t5/python-questions/null-in-python/m-p/25201#M1900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;did you try two double quotes? ""&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 11:48:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/null-in-python/m-p/25201#M1900</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2012-06-15T11:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Null in python?</title>
      <link>https://community.esri.com/t5/python-questions/null-in-python/m-p/25202#M1901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;None should not be in quotes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 13:32:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/null-in-python/m-p/25202#M1901</guid>
      <dc:creator>ChrisBater</dc:creator>
      <dc:date>2012-06-15T13:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Null in python?</title>
      <link>https://community.esri.com/t5/python-questions/null-in-python/m-p/25203#M1902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Null What?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;None should work for Null pointers&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thing is an object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if&amp;nbsp; thing == None :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thing is a string&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;one thing about strings however is users sometimes put man blank charagers in a string. So it looks empty&amp;nbsp; but "" will fail.&amp;nbsp; So you need to check thing.len() == 0 first.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if thing == "":&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 18:43:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/null-in-python/m-p/25203#M1902</guid>
      <dc:creator>WilliamIde</dc:creator>
      <dc:date>2012-06-15T18:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Null in python?</title>
      <link>https://community.esri.com/t5/python-questions/null-in-python/m-p/25204#M1903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;check out this blog for dealing with null values&amp;nbsp; when using field calculator:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2010/08/30/concatenate/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://blogs.esri.com/esri/arcgis/2010/08/30/concatenate/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
# Special case for null soiltype
if soil == '':
&amp;nbsp;&amp;nbsp;&amp;nbsp; return veg
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, you need to convert the value into string even if it's already a string.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:01:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/null-in-python/m-p/25204#M1903</guid>
      <dc:creator>ThaiTruong</dc:creator>
      <dc:date>2021-12-10T21:01:15Z</dc:date>
    </item>
  </channel>
</rss>

