[Python-Dev] Iterable String Redux (aka String ABC) (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Fri May 30 00:41:50 CEST 2008


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



More information about the Python-Dev mailing list