Newbie question: string replace

Alex Martelli aleaxit at
Sat Oct 29 04:56:37 CEST 2005

Steven D'Aprano <steve at> wrote:

> On Fri, 28 Oct 2005 12:27:36 -0700, usgog at wrote:
> > hm...Is there a way to get rid of the newline in "print"?
> Yes, by using another language *wink*

Ending the print statement with a comma also works;-)

> Or, instead of using print, use sys.stdout.write().

Yep, generally better than 'print'.


More information about the Python-list mailing list