Re: computing with characters



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



Relevant Pages

  • Re: .99999... still=/= 1
    ... > placeholders in the infinite long area *N were already occupied. ... decimal digit strings. ... sequence, and it is understood that any other sequence that happens to ... To describe a member of *N, for example, I can ...
    (sci.math)
  • Re: Pitman CSI Formula - for all values of X
    ... The total number of strings with HD of 1 relative to the chosen ... specific sequence space, which contains it as well as all of the other ... within a particular Hamming Distance of the reference string. ... But patterns don't necessarily imply deliberate design, ...
    (talk.origins)
  • Re: Pitman CSI Formula - for all values of X
    ... The total number of strings with HD of 1 relative to the chosen ... specific sequence space, which contains it as well as all of the other ... within a particular Hamming Distance of the reference string. ... radio signals, but made up 0s and 1s. ...
    (talk.origins)
  • Re: Pitman CSI Formula - for all values of X
    ... The total number of strings with HD of 1 relative to the chosen ... specific sequence space, which contains it as well as all of the other ... within a particular Hamming Distance of the reference string. ... several subsequent posts that your examples were "radio signals", ...
    (talk.origins)
  • Re: Pitman CSI Formula - for all values of X
    ... The total number of strings with HD of 1 relative to the chosen ... specific sequence space, which contains it as well as all of the other ... within a particular Hamming Distance of the reference string. ... radio signals, but made up 0s and 1s. ...
    (talk.origins)