John Machin wrote:
>> I'd try this:
>
> if isinstance(returned_value, basestring):
>     returned_value = [returned_value]
> for item in returned_value:
>     do_something_with(item)
> 
> HTH,
> John

This sounds like a neat way of doing it, thanks!

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to