The fundamentals...

Alex Martelli aleaxit at yahoo.com
Thu Jan 25 07:41:55 EST 2001


"Neil Schemenauer" <nas at arctrix.com> wrote in message
news:mailman.980382102.30218.python-list at python.org...
> On Wed, Jan 24, 2001 at 08:58:46AM -0800, Neil Schemenauer wrote:
> > So you can do:
> >
> >     boo = string.replace(". ", "\n")
>
> That should be:
>
>       boo = string.replace(boo, ". ", "\n")

Or boo = boo.replace('. ', '\n')  [in Python 2, but surely
we're all upgraded by now, aren't we?-)]


Alex






More information about the Python-list mailing list