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
_______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
