That's inconsistent. How is print supposed to know when to use a space and
when not? My solution:
import sys
def myprint(*messages):
# Only write once to improve performance
text = ''
for message in messages:
if type(message) == type(''):
text = text + message
else:
text = text + `message`
sys.stderr.write(text)
a = '1'
b = '2'
myprint(a)
myprint(', ')
myprint(b, '\n')
Or any variant you like.
Good luck,
-Jaap-