<?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: Syntax help: defining a function in python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/syntax-help-defining-a-function-in-python/m-p/685203#M53040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks AC,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think what I'm after is more structural guidance. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to select each feature in a feature class without having to select by an attribute value?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;New code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;GDB = workspace = arcpy.env.workspace = "X:\\Grid\\Grid_Working.gdb\\working_utm"
outFold = "X:\Grid\\Shape_AOI_files"
FC = "X:\\Grid\\Grid_Working.gdb\\All_Tiles\\Grid_w_rShad"
fieldName = "Grid_Num"
buf = '200 feet'
def selectBufExport(GDB, FC, fieldName, fieldVal, buf):
&amp;nbsp;&amp;nbsp;&amp;nbsp; selection = arcpy.Select_analysis(FC, GDB + '\\' + &lt;STRONG&gt;fieldVal&lt;/STRONG&gt;, '%s = %s' % (fieldName, fieldVal))
&amp;nbsp;&amp;nbsp;&amp;nbsp; bufferedSelection = arcpy.Buffer_analysis(selection, GDB + '\\' + "_buf", buf)
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Export(bufferedSelection, GDB + '\\' + '%s_%s_tile' % (fieldName, fieldVal))
for (fieldVal, buf) in [(2, buf), (22, buf)]:
&amp;nbsp;&amp;nbsp;&amp;nbsp; selectBufExport(GDB, FC, fieldName, fieldVal, buf)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Specific question: Is it possible to name output using the fieldName, and fieldVal terms? These are INT objects, so how do I treat these as text? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I so far off that no one can point me in the right direction?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 04:49:17 GMT</pubDate>
    <dc:creator>RichardThurau</dc:creator>
    <dc:date>2021-12-12T04:49:17Z</dc:date>
    <item>
      <title>Syntax help: defining a function in python</title>
      <link>https://community.esri.com/t5/python-questions/syntax-help-defining-a-function-in-python/m-p/685201#M53038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Trying to write a code based on what I've learned in another &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/39793-Problem-with-Update-Cursor?highlight=file+name+length+python" rel="nofollow noopener noreferrer" target="_blank"&gt;thread&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I would like to do: Loop through each feature in a featureclass, select each feature, buffer, export as an individual featureclass.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I am trying to do with this script: Select features "Grid_Num" = 7 and 22, buffer them, and export them as individual feature classes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's my code: &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
##from arcpy.sa import *
from arcpy import env
##arcpy.CheckOutExtension("Spatial")
workspace = arcpy.env.workspace = "X:\\Grid\\Grid_Working.gdb\\All_Tiles\\"
##arcpy.env.overwrightOutput = True
GDB = "X:\\Grid\\Grid_Working.gdb\\All_Tiles\\"
FC = "X:\\Grid\\Grid_Working.gdb\\All_Tiles\\Grid_w_rShad"
fieldName = "Grid_Num"
buf = '200 feet'

def selectBufExport(GDB, FC, fieldName, fieldVal, buf):
&amp;nbsp;&amp;nbsp;&amp;nbsp; selection = arcpy.selectByAttributes(GDB +'\\'+ FC, '%s = %s' % (fieldName, fieldVal))
&amp;nbsp;&amp;nbsp;&amp;nbsp; bufferedSelection = arcpy.Buffer(selection, buf)
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Export(bufferedSelection, GDB + '\\' + '%s_%s_tile' % (fieldName, fieldVal))

for (fieldVal, buf) in [(7, buf), (22, buf)]:
&amp;nbsp;&amp;nbsp;&amp;nbsp; selectBufExport(GDB, FC, fieldName, fieldVal, buf)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error message:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;selection = arcpy.selectByAttributes(GDB +'\\'+ FC, 'fieldName = 7')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AttributeError: 'module' object has no attribute 'selectByAttributes'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stacy R, I tried writing this from your example cited above, but I'm not savvy enough!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking for help solving this issue, or advice on how to improve, and suggestions for learning more in general. Much appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rich&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:49:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/syntax-help-defining-a-function-in-python/m-p/685201#M53038</guid>
      <dc:creator>RichardThurau</dc:creator>
      <dc:date>2021-12-12T04:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax help: defining a function in python</title>
      <link>https://community.esri.com/t5/python-questions/syntax-help-defining-a-function-in-python/m-p/685202#M53039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;the correct sintax is arcpy.SelectLayerByAttribute_management&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ciao,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AC&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 06:07:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/syntax-help-defining-a-function-in-python/m-p/685202#M53039</guid>
      <dc:creator>AlessandroCinnirella</dc:creator>
      <dc:date>2011-10-14T06:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax help: defining a function in python</title>
      <link>https://community.esri.com/t5/python-questions/syntax-help-defining-a-function-in-python/m-p/685203#M53040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks AC,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think what I'm after is more structural guidance. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to select each feature in a feature class without having to select by an attribute value?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;New code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;GDB = workspace = arcpy.env.workspace = "X:\\Grid\\Grid_Working.gdb\\working_utm"
outFold = "X:\Grid\\Shape_AOI_files"
FC = "X:\\Grid\\Grid_Working.gdb\\All_Tiles\\Grid_w_rShad"
fieldName = "Grid_Num"
buf = '200 feet'
def selectBufExport(GDB, FC, fieldName, fieldVal, buf):
&amp;nbsp;&amp;nbsp;&amp;nbsp; selection = arcpy.Select_analysis(FC, GDB + '\\' + &lt;STRONG&gt;fieldVal&lt;/STRONG&gt;, '%s = %s' % (fieldName, fieldVal))
&amp;nbsp;&amp;nbsp;&amp;nbsp; bufferedSelection = arcpy.Buffer_analysis(selection, GDB + '\\' + "_buf", buf)
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Export(bufferedSelection, GDB + '\\' + '%s_%s_tile' % (fieldName, fieldVal))
for (fieldVal, buf) in [(2, buf), (22, buf)]:
&amp;nbsp;&amp;nbsp;&amp;nbsp; selectBufExport(GDB, FC, fieldName, fieldVal, buf)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Specific question: Is it possible to name output using the fieldName, and fieldVal terms? These are INT objects, so how do I treat these as text? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I so far off that no one can point me in the right direction?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:49:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/syntax-help-defining-a-function-in-python/m-p/685203#M53040</guid>
      <dc:creator>RichardThurau</dc:creator>
      <dc:date>2021-12-12T04:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax help: defining a function in python</title>
      <link>https://community.esri.com/t5/python-questions/syntax-help-defining-a-function-in-python/m-p/685204#M53041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's one way to do it -- see comments in script. What I normally do is write one module with all the functions I need, as well as a test routine in the __main__ part, and then import those functions into another script for use as a script tool. That way I'm not duplicating code if multiple script tools use some of the same functions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy
import os

def bufferFeaturesToIndividualFCs(inputFC, outputWorkspace, fieldName, bufferAmount, inputWhereClause=None):
&amp;nbsp;&amp;nbsp;&amp;nbsp; """Buffers each feature in the input feature class and creates a new
&amp;nbsp;&amp;nbsp;&amp;nbsp; feature class for each buffered feature. Specify a WHERE clause to
&amp;nbsp;&amp;nbsp;&amp;nbsp; specify which features should be processed."""

&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.overwriteOutput = True # Overwrite outputs if they already exist
&amp;nbsp;&amp;nbsp;&amp;nbsp; desc = arcpy.Describe(inputFC)
&amp;nbsp;&amp;nbsp;&amp;nbsp; oidField = desc.OIDFieldName # Get the name of the ObjectID field so we can copy individual features
&amp;nbsp;&amp;nbsp;&amp;nbsp; oidFieldDelimited = arcpy.AddFieldDelimiters(inputFC, oidField) # Add field delimiters outside of the loop since it could be expensive
&amp;nbsp;&amp;nbsp;&amp;nbsp; rows = arcpy.SearchCursor(inputFC, inputWhereClause) # Create a cursor with which we can loop over the input features
&amp;nbsp;&amp;nbsp;&amp;nbsp; tempFC = r"in_memory\temp" # Designate a temporary feature class. In this case we use the in-memory workspace
&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in rows: # Loop over the input features
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; whereClause = "%s = %d" % (oidFieldDelimited, row.getValue(oidField)) # Construct a WHERE clause for the current feature's ObjectID
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.FeatureClassToFeatureClass_conversion(inputFC, os.path.dirname(tempFC), os.path.basename(tempFC), whereClause) # Copy the current feature to the temporary feature class
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outputFCName = "%s_%s_Buffer" % (os.path.basename(inputFC), str(row.getValue(fieldName))) # Construct the name of the output feature class
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outputFCPath = os.path.join(outputWorkspace, outputFCName) # Construct the full path of the output feature class
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Buffer_analysis(tempFC, outputFCPath, bufferAmount) # Buffer the temporary feature class and write it to the output feature class
&amp;nbsp;&amp;nbsp;&amp;nbsp; if arcpy.Exists(tempFC):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Delete_management(tempFC) # Clean up the temporary workspace

if __name__ == "__main__":
&amp;nbsp;&amp;nbsp;&amp;nbsp; inputFC = r"C:\GISData\test.gdb\control"
&amp;nbsp;&amp;nbsp;&amp;nbsp; outputGDB = r"C:\GISData\buffertest.gdb"
&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldName = "ID"
&amp;nbsp;&amp;nbsp;&amp;nbsp; bufferAmount = "200 feet"
&amp;nbsp;&amp;nbsp;&amp;nbsp; inputWhereClause = '"CONTROL_ID" IN(1, 2)'
&amp;nbsp;&amp;nbsp;&amp;nbsp; bufferFeaturesToIndividualFCs(inputFC, outputGDB, fieldName, bufferAmount, inputWhereClause)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:49:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/syntax-help-defining-a-function-in-python/m-p/685204#M53041</guid>
      <dc:creator>LoganPugh</dc:creator>
      <dc:date>2021-12-12T04:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax help: defining a function in python</title>
      <link>https://community.esri.com/t5/python-questions/syntax-help-defining-a-function-in-python/m-p/685205#M53042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Logan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a bunch. As it happens, I wasn't able to get back to this for a while. It's been very helpful though both for getting it done and learning quite a bit about update cursor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll try posting a new problem here, but may have to start a new thread: I'm trying to use update.cursor to do a spatial selection of another layer, then populate the selection layer with an attribute from the cursor layer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.MakeFeatureLayer_management(Jurs_dis, "JurLyr")
rows = arcpy.SearchCursor("JurLyr", "", "", "Jur_Name", "")
arcpy.MakeFeatureLayer_management(parcels, "parcLyr")
for row in rows:
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SelectLayerByLocation_management("parcLyr", "HAVE_THEIR_CENTER_IN", "JurLyr", "", "NEW_SELECTION")
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CalculateField_management("parcLyr", "Dist", "%s") %(row.Jur_Name)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to select "parcLyr" by each feature in "JurLyr", then populate "parcLyr" field "Dist" with the value in "JurLyr" field "Jur_Name".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm getting an "invalid character" error. I feel like I'm close.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rich&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:49:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/syntax-help-defining-a-function-in-python/m-p/685205#M53042</guid>
      <dc:creator>RichardThurau</dc:creator>
      <dc:date>2021-12-12T04:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax help: defining a function in python</title>
      <link>https://community.esri.com/t5/python-questions/syntax-help-defining-a-function-in-python/m-p/685206#M53043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CalculateField_management("parcLyr", "Dist", '"%s" %(row.Jur_Name)',"PYTHON")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;instead of&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CalculateField_management("parcLyr", "Dist", "%s") %(row.Jur_Name)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's one I use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CalculateField_management(featureclass, "FACILITY_JOIN", '"%s-%s" % (!FACILITY!,!FLOOR!)', "PYTHON")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 12:38:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/syntax-help-defining-a-function-in-python/m-p/685206#M53043</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-11-07T12:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax help: defining a function in python</title>
      <link>https://community.esri.com/t5/python-questions/syntax-help-defining-a-function-in-python/m-p/685207#M53044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Huey,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, the code did run and update my parcels attribute. However, instead of populating parcels based on the JurName each parcel is inside, it updated all the parcels with the first JurName.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess I need to add some iteration? I thought the for loop would do it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions on that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;THanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rich&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 16:21:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/syntax-help-defining-a-function-in-python/m-p/685207#M53044</guid>
      <dc:creator>RichardThurau</dc:creator>
      <dc:date>2011-11-08T16:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax help: defining a function in python</title>
      <link>https://community.esri.com/t5/python-questions/syntax-help-defining-a-function-in-python/m-p/685208#M53045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you considered using a spatial join? You could then use a regular join and calculate the desired field from the joined layer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 16:55:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/syntax-help-defining-a-function-in-python/m-p/685208#M53045</guid>
      <dc:creator>LoganPugh</dc:creator>
      <dc:date>2011-11-08T16:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax help: defining a function in python</title>
      <link>https://community.esri.com/t5/python-questions/syntax-help-defining-a-function-in-python/m-p/685209#M53046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Interesting suggestion, mostly because it works. Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ultimately, if I had to join multiple types of larger geographies' attributes to the parcels (which I do), I'd have to do a lot of spatial joins then join fields to my original parcels dataset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Select by location based on layer selections seems at least a little more efficient. I'm not going to worry about it now, but conceptually it seems like the code I posted last should work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for resolving my issue, but I wonder if any one out there has made a dual layer selection system like this work in python?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;rich&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 18:30:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/syntax-help-defining-a-function-in-python/m-p/685209#M53046</guid>
      <dc:creator>RichardThurau</dc:creator>
      <dc:date>2011-11-08T18:30:23Z</dc:date>
    </item>
  </channel>
</rss>

