is parameter an iterable?
py
codecraig at gmail.com
Tue Nov 15 14:26:23 EST 2005
Dan Sommers wrote:
> Just do it. If one of foo's callers passes in a non-iterable, foo will
> raise an exception, and you'll catch it during testing
That's exactly what I don't want. I don't want an exception, instead I
want to check to see if it's an iterable....if it is continue, if not
return an error code. I can't catch it during testing since this is
going to be used by other people.
Thanks for the suggestion though.
More information about the Python-list
mailing list