print without newline?

noahspurrier at my-deja.com noahspurrier at my-deja.com
Wed Aug 30 02:18:16 EDT 2000


Is there a way to print without the newline (carriage return
or line feed)? This does not do what I want:
        print "Hello.",
because it puts a space after the "Hello."

So I've been doing this:
        sys.stdout.write ("Hello.")
but this seems ugly, plus I have to import sys.

Yours,
Noah


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list