Re: computing with characters
- From: Duncan Booth <duncan.booth@xxxxxxxxxxxxxxx>
- Date: 30 Apr 2008 11:56:03 GMT
Torsten Bronger <bronger@xxxxxxxxxxxxxxxxxxxxx> wrote:
However, join() is really bizarre. The list rather than the
separator should be the leading actor.
Do you mean the list, or do you mean the list/the tuple/the dict/the
generator/the file and anything else which just happens to be an iterable
sequence of strings?
join is a factory method for creating a string from a separator string and
a sequence of strings, any sequence of strings. It doesn't make sense to
either limit it to specific sequence types, or to require it as part of the
iterator protocol.
Having it as a function would make sense, but if it is going to be a method
then it should be a method on the string types not on the sequence types.
.
- References:
- computing with characters
- From: SL
- Re: computing with characters
- From: Lutz Horn
- Re: computing with characters
- From: SL
- Re: computing with characters
- From: Gabriel Genellina
- Re: computing with characters
- From: SL
- Re: computing with characters
- From: Torsten Bronger
- Re: computing with characters
- From: Duncan Booth
- Re: computing with characters
- From: Torsten Bronger
- computing with characters
- Prev by Date: Re: computing with characters
- Next by Date: Re: xml.dom.minidom weirdness: bug?
- Previous by thread: Re: computing with characters
- Next by thread: Re: computing with characters
- Index(es):
Relevant Pages
|