Newbie Question - Checkboxes

Leanne stevenst at rocketmail.com
Thu Dec 14 03:40:57 EST 2006


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!




More information about the Python-list mailing list