Martin DeMello
7/11/2008 6:56:00 PM
On Fri, Jul 11, 2008 at 11:38 AM, Jesse Crockett <tefflox@gmail.com> wrote:
>
> n.split
> n.join(", ") # fails
n.split returns a new object containing the array of split entries
from n. you aren't assigning this new object to anything, so it is
silently discarded. the object pointed to by n is unchanged. what you
want is something like
a = n.split
a.join(", ")
or more compactly
n.split.join(", ')
martin