On 9/15/06, <b class="gmail_sendername">Jason Orendorff</b> <<a href="mailto:email@example.com">firstname.lastname@example.org</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm sure this will happen to the same degree that it's become a<br>standard recipe in Java and C# (both of which lack polymorphic<br>whatzits). Which is to say, not at all.</blockquote><div><br>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.
<br><br>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.<br><br> Paul Prescod<br><br></div></div>