[Python-3000] string C API
paul at prescod.net
Fri Sep 15 18:33:49 CEST 2006
On 9/15/06, Jason Orendorff <jason.orendorff at gmail.com> wrote:
> I'm sure this will happen to the same degree that it's become a
> standard recipe in Java and C# (both of which lack polymorphic
> whatzits). Which is to say, not at all.
I think Jason's point is key. This is probably premature optimization and
should not be done if it will complicate the Python user's experience at all
(e.g. by delaying exceptions). Polymorphism is interesting to me primarily
to support 4-byte characters and therefore go beyond Java and C# in
functionality without slowing everything else down. If we gain some speed on
them for 8-bit strings, that would be a nice bonus.
But delaying UTF-8 decoding has not proven necessary for good performance in
the other Unicode-based languages. It just seems like extra complexity for
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-3000