Dennis Benzinger wrote: > Jonathan Bowlas wrote: >> Hi Listers, >> >> I have a requirement to test for a data type could someone tell me if >> this >> is possible in python? >> >> Basically I have a ZPT in Zope that users can select checkboxes in a form >> which pass arguments for a python function, however if there is only one >> checkbox selected it is passed as a string whereas more than one >> checkbox is >> passed as a list. Therefore if my function is required to perform an >> action >> based on each argument passed in the list the function works correctly >> but >> if it is passed as a string nothing happens. > > You need the isinstance() function.
Not in Zope. -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for p in '[EMAIL PROTECTED]'.split('@')])" -- http://mail.python.org/mailman/listinfo/python-list