[I18n-sig] Re: Strawman Proposal: Smart String Test

Fredrik Lundh fredrik@effbot.org
Sun, 11 Feb 2001 12:29:27 +0100


> type(foo)==type("")

any reason we cannot just make this work, whether foo
contains 8-bit or 16-bit data?

btw, the preferred syntax is:

    isinstance(foo, type(""))

I think it's okay only the latter works, for now (which can
be solved by a simple and stupid hack, while waiting for a
real type hierarchy...)

Cheers /F