<?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: Creating cursor inside or outside loop in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/creating-cursor-inside-or-outside-loop/m-p/713594#M55349</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Leon...&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/blogs/dan_patterson/2016/08/14/script-formatting"&gt;/blogs/dan_patterson/2016/08/14/script-formatting&lt;/A&gt; should help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Oct 2019 00:10:59 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2019-10-15T00:10:59Z</dc:date>
    <item>
      <title>Creating cursor inside or outside loop</title>
      <link>https://community.esri.com/t5/python-questions/creating-cursor-inside-or-outside-loop/m-p/713592#M55347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;Here is my issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I create an insert cursor outside a for loop all inserted rows ends up with the same shape.&lt;/P&gt;&lt;P&gt;If I create the cursor inside the for loop i end up with the result that i expected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for code in image files, however this community editor seems to kill my indends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first example the cursor is created outside the loop&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/461790_badresult.png" /&gt;&amp;nbsp;The result:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji jive-image image-3 j-img-original" src="https://community.esri.com/legacyfs/online/461795_badoutput.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i move the creation of the cursor inside the loop&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/461791_greatresult.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji jive-image image-4 j-img-original" src="https://community.esri.com/legacyfs/online/461796_greatoutput.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why am I getting diffrent results?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2019 10:45:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-cursor-inside-or-outside-loop/m-p/713592#M55347</guid>
      <dc:creator>leonoestergaard</dc:creator>
      <dc:date>2019-10-14T10:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating cursor inside or outside loop</title>
      <link>https://community.esri.com/t5/python-questions/creating-cursor-inside-or-outside-loop/m-p/713593#M55348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How many items are in nogleboksDict?&amp;nbsp; And, how are you selecting the records in your screenshots?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2019 17:17:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-cursor-inside-or-outside-loop/m-p/713593#M55348</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-10-14T17:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Creating cursor inside or outside loop</title>
      <link>https://community.esri.com/t5/python-questions/creating-cursor-inside-or-outside-loop/m-p/713594#M55349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Leon...&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/blogs/dan_patterson/2016/08/14/script-formatting"&gt;/blogs/dan_patterson/2016/08/14/script-formatting&lt;/A&gt; should help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2019 00:10:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-cursor-inside-or-outside-loop/m-p/713594#M55349</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-10-15T00:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Creating cursor inside or outside loop</title>
      <link>https://community.esri.com/t5/python-questions/creating-cursor-inside-or-outside-loop/m-p/713595#M55350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3420"&gt;Joshua Bixby&lt;/A&gt;‌&amp;nbsp; 178 items in the dictionary. Im using "select by attributes" and querying with at like on a text field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2019 05:43:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-cursor-inside-or-outside-loop/m-p/713595#M55350</guid>
      <dc:creator>leonoestergaard</dc:creator>
      <dc:date>2019-10-15T05:43:12Z</dc:date>
    </item>
  </channel>
</rss>

