John Roth wrote:

> you need _both_ isinstance and the types  module to do a correct
> check for any string type: isinstance(fubar, types.StringTypes).
> That's because both string and unicode are subtypes of one base.

But basestring, their base class is a built-in.
-- 
Michael Hoffman
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to