printing with print

Angus MacKay Angus.MacKay at
Tue Jun 29 08:00:47 CEST 1999

From: Angus MacKay <amackay at>

is there any other way to print that with print?
perhaps with a real function.

I want to print two things without a space being added between them:
foo = "there"
print "hi" + foo

works fine but: 
foo = 2
print "hi" + foo

does not. I like the printing of any object ability of "print" so I
do not want to use "" % style printing, I just want to be able to
govern the whitespace that gets output.

cheers, Angus.

More information about the Python-list mailing list