Bruno Desthuilliers a écrit :
> [EMAIL PROTECTED] a écrit :
> 
> 4/ the Python 'for' loop is meant to iterate over an iterable and taking 
> care of boundaries, so you'd be better using it:
> 
> townships = gp.ListFeatureClasses ("*")
> for township in townships:
>   doSomethingWith(township)

Actually, forget the for loop (cf Fredrik's post - looks like 
gp.ListFeatureClasses() doesn't return an iterable...)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to