detrail the trailing space in print statement

Jon Ribbens jon+python-list at unequivocal.co.uk
Mon Oct 23 05:10:33 EDT 2000


June Kim <junaftnoon at nospamplzyahoo.com> wrote:
> I can remove the newline character by adding a comma but cannot remove
> the trailing space which is automatically inserted at the end of the object.
> 
> Any comments?

Don't use print. Use sys.stdout.write() instead.




More information about the Python-list mailing list