# Import system modules
import sys, string, os, arcgisscripting, glob, arcpy
# Create the Geoprocessor object
gp = arcgisscripting.create()
# define the workspace
gp.Workspace = r"F:\front\shp_Files\calving_front"
# list the file in the workspace
try:
shpList = gp.ListFeatureClasses("*.shp")
shp = shpList.Next()
print shp
except:
print arcpy.GetMessages() # allows to get error message when they
happen
you have to "consume" your list.
In pseudo code (sorry, I don't know Python):
'Get your list
list = getFileList()
'access the 1st (only) item
listItem = list.next()
'While there are some items left, process
while listItem
'Print its name (or do some real processing with it)
print listItem.name
'Access the next item
listItem = list.next
end while