Newbie question: string replace

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


Steven D'Aprano <steve at REMOVETHIScyber.com.au> wrote:

> On Fri, 28 Oct 2005 12:27:36 -0700, usgog at yahoo.com 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'.


Alex



More information about the Python-list mailing list