Easy Q

Victor Subervi victorsubervi at gmail.com
Sat Jan 9 11:11:28 EST 2010


Hi;
I have a string.join statement on a variable that comes from a
cgi.FieldStorage().getlist. The variable may be a list or a single value. I
need to treat it differently depending on which it is. How can I distinguish
it? len(var) will obviously give me the length of the string if it's a
string and the length of the list if it's a list.
TIA,
beno

-- 
The Logos has come to bear
http://logos.13gems.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100109/0c6834dc/attachment.html>


More information about the Python-list mailing list