Why is there no instancemethod builtin?

Michael Hoffman cam.ac.uk at mh391.invalid
Sun Jun 19 04:42:45 EDT 2005


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



More information about the Python-list mailing list