[Python-Dev] Crazy idea for str.join (original) (raw)

Guido van Rossum guido at python.org
Sun Apr 30 04:52:08 CEST 2006


On 4/29/06, Josiah Carlson <jcarlson at uci.edu> wrote:

I understand the underlying implementation of str.join can be a bit convoluted (with the auto-promotion to unicode and all), but I don't suppose there is any chance to get str.join to support objects which implement the buffer interface as one of the items in the sequence?

In Py3k, buffers won't be compatible with strings -- buffers will be about bytes, while strings will be about characters. Given that future I don't think we should mess with the semantics in 2.x; one change in the near(ish) future is enough of a transition.

-- --Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-Dev mailing list