luapknarf

strange output in python window

Discussion created by luapknarf on Jun 8, 2011
Latest reply on Jun 9, 2011 by luapknarf
Hello,

This is my first time using V. 10 python window, in Arccatalog.  I type the following code:

>>> import arcpy
>>> from arcpy import env
>>> env.workspace = r'C:\arcinfo\landuse_2010.gdb\deliverable'
>>> flist2 = arcpy.ListFields('tcad_lu_final2')
>>> print flist2

The results look something like this, with each "Field object" entry equaling the number of fields:
[<Field object at 0x16ac9990[0xf8eaba8]>, etc etc]

Ive tried this with other feature classes, and get the similar results - the "Field object" entries equal the number of fields.  So python is returning something, just not a list of fields.  Does anyone know why?

Thanks Kindly,

Paul Frank
City of Austin

Outcomes