The inverse of .join

Robert Kern robert.kern at gmail.com
Thu Jun 17 16:35:00 EDT 2010


On 6/17/10 3:03 PM, Neil Cerutti wrote:
> On 2010-06-17, Robert Kern<robert.kern at gmail.com>  wrote:
>> On 6/17/10 2:08 PM, Neil Cerutti wrote:
>>> On 2010-06-17, Ian Kelly<ian.g.kelly at gmail.com>   wrote:
>>>> On Thu, Jun 17, 2010 at 11:45 AM, Neil Cerutti
>>>> <neilc at norwich.edu>   wrote:
>>>>> What's the best way to do the inverse operation of the .join
>>>>> function?
>>>>
>>>> Use the str.split method?
>>>
>>> split is perfect except for what happens with an empty string.
>>
>> Why don't you try it and find out?

I would like to apologize. I read that sentence as a question for some reason.

That said, it always helps for you to show the results that you are getting (and 
the code that gives those results) and state what results you were expecting.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco




More information about the Python-list mailing list