<?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: iterator col in row object in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/iterator-col-in-row-object/m-p/193791#M14854</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any updates on this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Sep 2011 12:20:15 GMT</pubDate>
    <dc:creator>MichaelFaulcon1</dc:creator>
    <dc:date>2011-09-21T12:20:15Z</dc:date>
    <item>
      <title>iterator col in row object</title>
      <link>https://community.esri.com/t5/python-questions/iterator-col-in-row-object/m-p/193790#M14853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was stucked on get the field names from a row object. I have a feature set created from the query task. I want to pass this feature set to a geoprocessing so i can use a search cursor to iterator each feature. However, unless you specify the field name explicitly, you can not iterator the cols in the row. And there is no Describe or list object for featureset so you can get field info. I do want to pass additional parameter to just list the field names for the feature set. Does anyone have any idea how to get field names of a featureset through arcpy or Python?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 18:12:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/iterator-col-in-row-object/m-p/193790#M14853</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-08-03T18:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: iterator col in row object</title>
      <link>https://community.esri.com/t5/python-questions/iterator-col-in-row-object/m-p/193791#M14854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any updates on this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 12:20:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/iterator-col-in-row-object/m-p/193791#M14854</guid>
      <dc:creator>MichaelFaulcon1</dc:creator>
      <dc:date>2011-09-21T12:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: iterator col in row object</title>
      <link>https://community.esri.com/t5/python-questions/iterator-col-in-row-object/m-p/193792#M14855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The field list can be gotten by describing the feature class or table view you created the cursor from. (And of course, you can control which fields are included in the cursor by specifying them when creating the cursor.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;FieldObjects = arcpy.Describe(tbl).Fields 
FieldNames = [f.Name for f in FieldObjects] # field name strings in a list
Rows = arcpy.UpdateCursor(tbl)
for Row in Rows:
&amp;nbsp; for f in FieldNames:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print f, str(Row.GetValue(f))
&amp;nbsp; print
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:42:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/iterator-col-in-row-object/m-p/193792#M14855</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-11T09:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: iterator col in row object</title>
      <link>https://community.esri.com/t5/python-questions/iterator-col-in-row-object/m-p/193793#M14856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can also make a call, for Tables, Shapes and Feature Classes, to the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//000v0000001p000000" rel="nofollow noopener noreferrer" target="_blank"&gt;ListFields&lt;/A&gt;&lt;SPAN&gt; method directly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;FieldNames = [f.Name for f in arcpy.ListFields(tbl)] # field name strings in a list
Rows = arcpy.UpdateCursor(tbl)
for Row in Rows:
&amp;nbsp; for f in FieldNames:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print f, str(Row.GetValue(f))
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Interestingly, ESRI &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z00000019000000" rel="nofollow noopener noreferrer" target="_blank"&gt;doesn't seem to list any differences between these two approaches&lt;/A&gt;&lt;SPAN&gt;. From the page:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Alternatively, the ListFields and ListIndexes functions can be used to create the same lists.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:42:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/iterator-col-in-row-object/m-p/193793#M14856</guid>
      <dc:creator>MarcNakleh</dc:creator>
      <dc:date>2021-12-11T09:42:59Z</dc:date>
    </item>
  </channel>
</rss>

