join()
Michal Wallace
sabren at manifestation.com
Mon Oct 9 10:05:25 EDT 2000
On Mon, 9 Oct 2000, Hans Nowak wrote:
> Greg Ewing wrote:
> >
> > echuck at mindspring.com wrote:
> > >
> > > In Python 2.0, I was surprised to see join() had become a method of
> > > string. I "naturally" expected it to be a method of list.
> >
> > Quite a lot of people screamed blue murder about
> > this at the time, and were ignored. Getting it
> > changed now seems to be impossible.
> >
> > My advice is to boycott those methods and continue
> > using the string module, which fortunately is
> > still there.
>
> I second that. I never really saw the need for string methods anyway...
> then again, maybe I'm just daft. :) However, it's not unlikely that the
> string module will be deprecated, like other nice stuff. So I don't know
> if it's a good idea to boycott it.
",".join.(sequence) makes perfect sense. There's no reason someone
can't add sequence.join(',') later.. :)
String methods are important to minimize complexity with unicode:
http://starship.python.net/crew/amk/python/writing/new-python/
section 7
Cheers,
- Michal
------------------------------------------------------------------------
www.manifestation.com www.sabren.com www.linkwatcher.com www.zike.net
------------------------------------------------------------------------
More information about the Python-list
mailing list