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

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

> Nope. There are other things in there, such as string.whitespace or
> string.letters that aren't found elsewhere. There are also some functions
> such as string.ljust or string.center that were not converted to methods.

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.:

<list>.join() -> <string>
>>> ["one", "two", "three"].join(" ")	# " " would be default arg
'one two three'

rather than:

<string>.join(<list>) -> <string>
>>> " ".join(["one", "two", "three"])
'one two three'

I can just see this: " ".join(xxxx) notation appearing all over the place.

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