Thanks Mathew,I am using ArcGIS 9.2/Python 2.4 IDLE, CPython Windows XP.
import arcgisscripting
gp = arcgisscripting.create()
gp.OverWriteOutput = 'True'
...
...
gp.workspace = startFromFolder # d:\projects\New\DaTa
workspaces = gp.ListWorkspaces(dataFolders, "Folder") ## part_01
"""
When using a 9.2-version geoprocessor,
ListWorkspaces returns an enumeration instead of a Python List.
""""
for workspace in workspaces:
...
...
What's the difference between enumeration and Python List ?