Prev: Efficiency/style issues of import <module> vs. from <module> import <name>, ...
Next: Running a program from another program.
From: Neil Cerutti on 17 Jun 2010 13:45 What's the best way to do the inverse operation of the .join function? -- Neil Cerutti
From: nn on 17 Jun 2010 13:49 Neil Cerutti wrote: > What's the best way to do the inverse operation of the .join > function? > > -- > Neil Cerutti split
From: MRAB on 17 Jun 2010 14:05 Neil Cerutti wrote: > What's the best way to do the inverse operation of the .join > function? > ..split, possibly, although there will be problems if the string contains other occurrences of the separator.
From: Ian Kelly on 17 Jun 2010 14:01 On Thu, Jun 17, 2010 at 11:45 AM, Neil Cerutti <neilc(a)norwich.edu> wrote: > What's the best way to do the inverse operation of the .join > function? Use the str.split method?
From: Neil Cerutti on 17 Jun 2010 15:08
On 2010-06-17, Ian Kelly <ian.g.kelly(a)gmail.com> wrote: > On Thu, Jun 17, 2010 at 11:45 AM, Neil Cerutti > <neilc(a)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 |