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?