[Python-Dev] join()

Guido van Rossum guido at CNRI.Reston.VA.US
Fri Jun 11 21:44:28 CEST 1999

> I still don't understand the motivation for making it a builtin instead of a
> method of the types it operates on.  Making it a builtin seems very
> un-object-oriented to me.

Because if you make it a method, every sequence type needs to know
about joining strings.  (This wouldn't be a problem in Smalltalk where 
sequence types inherit this stuff from an abstract sequence class, but 
in Python unfortunately that doesn't exist.)

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

More information about the Python-Dev mailing list