[Python-checkins] CVS: python/dist/src/Lib string.py,1.46,1.47

Adrian Eyre a.eyre@optichrome.com
Fri, 11 Feb 2000 12:15:42 -0000


> Another thing. Why has string.join been added to the string object, when
> it make so much more sense to add it to the list object. i.e.:

Actually, s/list/sequence/

>>> ["a", "b", "c"].join()
'a b c'
>>> ("a", "b", "c").join()
'a b c'
>>> "abc".join(", ")
'a, b, c'

-----------------------------------------------------------------
Adrian Eyre <a.eyre@optichrome.com> - http://www.optichrome.com