AnsweredAssumed Answered

arcpy.management.<gp_tool> vs. arcpy.<gp_tool>_management?

Question asked by dcafdg on Aug 4, 2020
Latest reply on Aug 5, 2020 by bixb0012

When I open the help in Pro from a GP tool, the docs (example) give me usage like this: 

arcpy.SelectLayerByAttribute_management( ... )


When I go to the GP history and copy the Python snippet (now called "Copy Python Command"), it gives me slightly different syntax: 

arcpy.management.SelectLayerByAttribute( ... )

 

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? 

Outcomes