Georg Brandl wrote: > Greg Ewing schrieb: > >> Doesn't isinstance(x, basestring) already cover that? > > That doesn't cover UserString, for example. A better solution to that might be to have UserString inherit from basestring. -- Greg