No newline using printf

Erik Max Francis max at alcyone.com
Fri Sep 16 02:40:21 CEST 2005


Samuel wrote:

> How can I print a word without appending a newline character? Appending
> a "," to the print statement only substitutes the newline for a space,
> which is not what I am looking for.

Use sys.stdout.write directly.

-- 
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
   A life without festivity is a long road without an inn.
   -- Democritus



More information about the Python-list mailing list