The inverse of .join

Neil Cerutti neilc at norwich.edu
Thu Jun 17 15:08:42 EDT 2010


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.

-- 
Neil Cerutti



More information about the Python-list mailing list