Where is the arcpy.da.Describe() documentation?

2745
2
05-13-2020 02:53 PM
DanDeegan
New Contributor III

I stumbled on using da.Describe a few months ago and find it very useful. I am looking for more information about it and can't find any of the resources that explained it to me a few months ago. I am using arcpy.da.Describe(fc)["fields"] to do things and want to know what else i can put in ["???"]

Describe—Data Access module | Documentation 

That SHOULD contain some examples. 

But everything i find using that page uses the old. arcpy.Describe()

0 Kudos
2 Replies
JoshuaBixby
MVP Esteemed Contributor

arcpy.da.Describe and arcpy.Describe return the same underlying information, the difference with arcpy.da.Describe is that it returns a Python dictionary with most or all of the properties pre-populated.   That is why the documentation for arcpy.da.Describe points back to arcpy.Describe because it doesn't make sense for Esri to duplicate the documentation of the properties themselves.  Since the DA version returns a populated Python dictionary, you can just call dict.keys() to see all of the available properties.

AJR
by
Occasional Contributor II

They return mostly the same information.  For example, arcpy.da.describe doesn't return the connection properties (i.e. server, database, etc.) for an sde workspace object.  They may be brought into parity at some point in the future.

0 Kudos