<?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: Passing Value for Dictionary Look Up Fails in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69264#M5658</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it is a bug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just tried it at 10.1 on my local desktop and it ran perfectly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Dec 2014 21:08:18 GMT</pubDate>
    <dc:creator>AmySorensen</dc:creator>
    <dc:date>2014-12-22T21:08:18Z</dc:date>
    <item>
      <title>Passing Value for Dictionary Look Up Fails</title>
      <link>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69255#M5649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 1em; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I've a field calculator that I am trying to use that uses a csv file to look up appropriate value based on key that is passed provided to the function. As provided below, the only values calculated are zero. The code itself is loading the data and working correctly. If I enter any number into final line of code instead of "elev" it calculates the appropriate value. If I just return "elev" to see if value is getting there, it calculates the correct values. When I try the code as below, I can't get it to return the right values. Any suggestions would be appreciated.&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;Using ArcGIS 10.2 at ArcInfo level&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;What I have is below:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;import&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; csv 
&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; def&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;IDSeg&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;elev&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;):&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; 
&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; with&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; open&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;'path'&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mode&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;'r'&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;as&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; infile&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;:
&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reader &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; csv&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;reader&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;infile&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; 
&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; rows &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;in&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; reader&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; k &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; rows&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #953838;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;]&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; rows&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #953838;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;]&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lookUp &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;rows&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #953838;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;]:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;rows&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #953838;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;]&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;for&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; rows &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;in&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; reader&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; 
&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; lookUp&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;get&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;elev&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #953838;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:39:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69255#M5649</guid>
      <dc:creator>AmySorensen</dc:creator>
      <dc:date>2021-12-10T22:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Value for Dictionary Look Up Fails</title>
      <link>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69256#M5650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you format you code using Python syntax (turn on the Advanced editor, select &amp;gt;&amp;gt;, then syntax highlighting, then Python...I know it buried in the depths of hell but that is where it is) &lt;/P&gt;&lt;P&gt;It is hard to see if your indentation is correct, but one glaring error is that the import statement and the def should have the same indentation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import csv&lt;/P&gt;&lt;P&gt;def (blah):&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 03:44:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69256#M5650</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-12-22T03:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Value for Dictionary Look Up Fails</title>
      <link>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69257#M5651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you check on the type of the 'elev' that gets returned by your function?&lt;/P&gt;&lt;P&gt;csv.reader will give you the values as strings. Hence, there is the possibility that you are passing the correct value to dict.get() but its type is string. If I understand your explanation correct what you want is a type 'int'.&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14192412434528961 jive_text_macro" jivemacro_uid="_14192412434528961"&gt;&lt;P&gt;type(rows[0])&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;will give you the type of your key. the type of 'elev' and that of rows[0] have to be the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;btw.: that's pure Python and independent from any ArcGIS version. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 09:08:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69257#M5651</guid>
      <dc:creator>TomGeo</dc:creator>
      <dc:date>2014-12-22T09:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Value for Dictionary Look Up Fails</title>
      <link>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69258#M5652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It appears that 'elev' is passed as a float and&amp;nbsp; rows[0] is a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've edited the code and tested values and but I'm still not getting the correct value pulled when I try to pass the new, string value x into the function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import csv
def IDSeg(elev):
 with open('C:\\SD.csv', mode='r') as infile:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x = str(elev)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reader = csv.reader(infile)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for rows in reader:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; k = rows[0]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v = rows[1]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lookUp = {rows[0]:rows[1] for rows in reader}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return lookUp.get(elev,0)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On line 10, if I substitute any of the key values my file contains directly as below it does grab the correct value.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return lookUp.get('9970', 0)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:39:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69258#M5652</guid>
      <dc:creator>AmySorensen</dc:creator>
      <dc:date>2021-12-10T22:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Value for Dictionary Look Up Fails</title>
      <link>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69259#M5653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and you tried...&lt;/P&gt;&lt;P&gt;&lt;SPAN class="keyword"&gt;return&lt;/SPAN&gt; lookUp.get(str(elev),&lt;SPAN class="number"&gt;0&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 17:40:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69259#M5653</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-12-22T17:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Value for Dictionary Look Up Fails</title>
      <link>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69260#M5654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it returns all zeros.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 17:49:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69260#M5654</guid>
      <dc:creator>AmySorensen</dc:creator>
      <dc:date>2014-12-22T17:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Value for Dictionary Look Up Fails</title>
      <link>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69261#M5655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide us with the csv file? At this point I could only throw around wild guesses and would give it a shot myself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 19:52:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69261#M5655</guid>
      <dc:creator>TomGeo</dc:creator>
      <dc:date>2014-12-22T19:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Value for Dictionary Look Up Fails</title>
      <link>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69262#M5656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure thing... if only you will tell me how to attach it here...(first time posting on here if you couldn't tell.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 20:10:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69262#M5656</guid>
      <dc:creator>AmySorensen</dc:creator>
      <dc:date>2014-12-22T20:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Value for Dictionary Look Up Fails</title>
      <link>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69263#M5657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to the advanced editor... lower right corner provides a possibility to attach a file. If you can't add the csv file, then zip it and upload the zip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking forward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 20:50:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69263#M5657</guid>
      <dc:creator>TomGeo</dc:creator>
      <dc:date>2014-12-22T20:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Value for Dictionary Look Up Fails</title>
      <link>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69264#M5658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it is a bug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just tried it at 10.1 on my local desktop and it ran perfectly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 21:08:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69264#M5658</guid>
      <dc:creator>AmySorensen</dc:creator>
      <dc:date>2014-12-22T21:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Value for Dictionary Look Up Fails</title>
      <link>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69265#M5659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does it even work without the type casting from float to string?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't know... Never had a problem with the csv module or any fundamental function in Python 2.6 or later. Neither in an installation of ArcGIS nor a standalone Python installation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 21:17:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69265#M5659</guid>
      <dc:creator>TomGeo</dc:creator>
      <dc:date>2014-12-22T21:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Value for Dictionary Look Up Fails</title>
      <link>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69266#M5660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It does not work with the type casting, so that was needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Running the same bit of code in both locations though and it returns all '0' in 10.2 on citrix and correct values on 10.1 on local.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 21:23:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69266#M5660</guid>
      <dc:creator>AmySorensen</dc:creator>
      <dc:date>2014-12-22T21:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Value for Dictionary Look Up Fails</title>
      <link>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69267#M5661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm going to mark this as the correct answer, even though there is still the odd behaviour that I can not get it to run in 10.2 and I can at 10.1. I'm not sure what could be the cause of this but the typecasting was also needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 21:28:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69267#M5661</guid>
      <dc:creator>AmySorensen</dc:creator>
      <dc:date>2014-12-22T21:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Value for Dictionary Look Up Fails</title>
      <link>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69268#M5662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you mark my suggestion for type casting then as the solution to your question. Your first question, my first answer. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 21:28:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/passing-value-for-dictionary-look-up-fails/m-p/69268#M5662</guid>
      <dc:creator>TomGeo</dc:creator>
      <dc:date>2014-12-22T21:28:46Z</dc:date>
    </item>
  </channel>
</rss>

