[Zope-Coders] unicode question
Guido van Rossum
guido@python.org
Tue, 09 Oct 2001 09:00:31 -0400
> StringType
> |
> |------UnicodeType
> |
> |------AsciiType
>
> would this work or am I missing something big (which I fear I am...)
The unicode type can't be a subtype of the str type, nor vice versa,
because their structure layout is different. C methods defined for
the base type should be safe for instances of subtypes.
(These are now their official names -- the types module merely defines
historic aliases.)
--Guido van Rossum (home page: http://www.python.org/~guido/)