TypeError: cannot concatenate 'str' and 'NoneType' objects
Bruno Desthuilliers
bdesth.quelquechose at free.quelquepart.fr
Wed Dec 20 15:17:38 EST 2006
Bruno Desthuilliers a écrit :
> thompson.marisa at gmail.com 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...)
More information about the Python-list
mailing list