<?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: arcpy.management.&amp;lt;gp_tool&amp;gt; vs. arcpy.&amp;lt;gp_tool&amp;gt;_management? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-management-lt-gp-tool-gt-vs-arcpy-lt-gp-tool/m-p/66679#M5472</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After 15 years they're going to switch the order?&amp;nbsp; I remember back in the day when you didn't even need the "toolbox" (e.g."_management")&amp;nbsp;~AND~&amp;nbsp;&amp;nbsp;you could use any case you wanted (e.g. SeLeCtLaYeRbYaTTrIBuTe).&lt;/P&gt;&lt;P&gt;As a old timer, I don't like it...and get off my lawn!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Aug 2020 16:24:44 GMT</pubDate>
    <dc:creator>RDHarles</dc:creator>
    <dc:date>2020-08-05T16:24:44Z</dc:date>
    <item>
      <title>arcpy.management.&lt;gp_tool&gt; vs. arcpy.&lt;gp_tool&gt;_management?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-management-lt-gp-tool-gt-vs-arcpy-lt-gp-tool/m-p/66673#M5466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I open the help in Pro from a GP tool, the docs (&lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/delete-features.htm"&gt;example&lt;/A&gt;) give me usage like this:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #993300; background-color: #f8f8f8; font-family: 'courier new', courier, monospace;"&gt;arcpy.SelectLayerByAttribute_management( ... )&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;When I go to the GP history and copy the Python snippet (now called "Copy Python Command"), it gives me slightly different syntax:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #993300; background-color: #f8f8f8; font-family: 'courier new', courier, monospace;"&gt;arcpy.management.SelectLayerByAttribute( ... )&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second looks much more like a Pythonic package structure to me. Is there any functional difference or any particular reason to use one over the over?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2020 22:31:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-management-lt-gp-tool-gt-vs-arcpy-lt-gp-tool/m-p/66673#M5466</guid>
      <dc:creator>davedoesgis</dc:creator>
      <dc:date>2020-08-04T22:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.management.&lt;gp_tool&gt; vs. arcpy.&lt;gp_tool&gt;_management?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-management-lt-gp-tool-gt-vs-arcpy-lt-gp-tool/m-p/66674#M5467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No functional difference... same script&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SelectLayerByAttribute_management??
Source&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   
@gptooldoc&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'SelectLayerByAttribute_management'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; None&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt; huge snip &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
File&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;      c&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\arc_pro\resources\arcpy\arcpy\management&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;py
Type&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;      function

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;management&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SelectLayerByAttribute??
Source&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   
@gptooldoc&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'SelectLayerByAttribute_management'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; None&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt; huge snip &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
File&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;      c&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\arc_pro\resources\arcpy\arcpy\management&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;py
Type&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;      function&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:33:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-management-lt-gp-tool-gt-vs-arcpy-lt-gp-tool/m-p/66674#M5467</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-12-10T22:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.management.&lt;gp_tool&gt; vs. arcpy.&lt;gp_tool&gt;_management?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-management-lt-gp-tool-gt-vs-arcpy-lt-gp-tool/m-p/66675#M5468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are not using Jupyter, you can also see they are the same by using the code dunder attribute:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SelectLayerByAttribute_management&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;__code__
&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;code object SelectLayerByAttribute at &lt;SPAN class="number token"&gt;0x0000023D1BF5F1E0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; file &lt;SPAN class="string token"&gt;"C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; line &lt;SPAN class="number token"&gt;8699&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;management&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SelectLayerByAttribute&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;__code__
&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;code object SelectLayerByAttribute at &lt;SPAN class="number token"&gt;0x0000023D1BF5F1E0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; file &lt;SPAN class="string token"&gt;"C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; line &lt;SPAN class="number token"&gt;8699&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:33:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-management-lt-gp-tool-gt-vs-arcpy-lt-gp-tool/m-p/66675#M5468</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-10T22:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.management.&lt;gp_tool&gt; vs. arcpy.&lt;gp_tool&gt;_management?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-management-lt-gp-tool-gt-vs-arcpy-lt-gp-tool/m-p/66676#M5469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It was actually Spyder... anything that can use ipython line magics will work&amp;nbsp;(others include jupyterlab, notebook, jupyter console or Pro's notebooks)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2020 04:01:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-management-lt-gp-tool-gt-vs-arcpy-lt-gp-tool/m-p/66676#M5469</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-08-05T04:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.management.&lt;gp_tool&gt; vs. arcpy.&lt;gp_tool&gt;_management?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-management-lt-gp-tool-gt-vs-arcpy-lt-gp-tool/m-p/66677#M5470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I guess that begs the question, which is more Pythonic?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2020 15:17:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-management-lt-gp-tool-gt-vs-arcpy-lt-gp-tool/m-p/66677#M5470</guid>
      <dc:creator>davedoesgis</dc:creator>
      <dc:date>2020-08-05T15:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.management.&lt;gp_tool&gt; vs. arcpy.&lt;gp_tool&gt;_management?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-management-lt-gp-tool-gt-vs-arcpy-lt-gp-tool/m-p/66678#M5471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The historical/legacy syntax was arcpy.SelectLayerByAttribute_management, and the newer/current syntax is arcpy.management.SelectLayerByAttribute.&amp;nbsp; The underlying package structure of ArcPy hasn't really changed, Esri is just moving away from the function alias model they originally adopted.&amp;nbsp; Personally, I consider the newer syntax more Pythonic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2020 15:45:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-management-lt-gp-tool-gt-vs-arcpy-lt-gp-tool/m-p/66678#M5471</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-08-05T15:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.management.&lt;gp_tool&gt; vs. arcpy.&lt;gp_tool&gt;_management?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-management-lt-gp-tool-gt-vs-arcpy-lt-gp-tool/m-p/66679#M5472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After 15 years they're going to switch the order?&amp;nbsp; I remember back in the day when you didn't even need the "toolbox" (e.g."_management")&amp;nbsp;~AND~&amp;nbsp;&amp;nbsp;you could use any case you wanted (e.g. SeLeCtLaYeRbYaTTrIBuTe).&lt;/P&gt;&lt;P&gt;As a old timer, I don't like it...and get off my lawn!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2020 16:24:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-management-lt-gp-tool-gt-vs-arcpy-lt-gp-tool/m-p/66679#M5472</guid>
      <dc:creator>RDHarles</dc:creator>
      <dc:date>2020-08-05T16:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.management.&lt;gp_tool&gt; vs. arcpy.&lt;gp_tool&gt;_management?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-management-lt-gp-tool-gt-vs-arcpy-lt-gp-tool/m-p/66680#M5473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Too bad there aren't laugh emoji reactions in GeoNet. Thanks for the chuckle, RD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2020 17:13:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-management-lt-gp-tool-gt-vs-arcpy-lt-gp-tool/m-p/66680#M5473</guid>
      <dc:creator>davedoesgis</dc:creator>
      <dc:date>2020-08-05T17:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.management.&lt;gp_tool&gt; vs. arcpy.&lt;gp_tool&gt;_management?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-management-lt-gp-tool-gt-vs-arcpy-lt-gp-tool/m-p/66681#M5474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is Jive's "laugh" emoji:&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2020 17:30:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-management-lt-gp-tool-gt-vs-arcpy-lt-gp-tool/m-p/66681#M5474</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-08-05T17:30:00Z</dc:date>
    </item>
  </channel>
</rss>

