[Python-3000] string C API

Paul Prescod 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
little benefit.

 Paul Prescod
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-3000/attachments/20060915/c0109d27/attachment.htm 

More information about the Python-3000 mailing list