This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients serhiy.storchaka, xiang.zhang
Date 2016-09-26.19:09:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1474916949.95.0.634939251187.issue28255@psf.upfronthosting.co.za>
In-reply-to
Content
Actually the behavior of the print statement in Python 2 is more complex.

"print x," doesn't output a space after x, but sets the softspace attribute of the file to true (unless x is a string ending with non-space whitespace character like \n or \t). print tests this flag before outputting a value and outputs a space if it is true. Any output to a file resets this flag. This behavior can't be exactly reproduced in Python 3.
History
Date User Action Args
2016-09-26 19:09:09serhiy.storchakasetrecipients: + serhiy.storchaka, xiang.zhang
2016-09-26 19:09:09serhiy.storchakasetmessageid: <1474916949.95.0.634939251187.issue28255@psf.upfronthosting.co.za>
2016-09-26 19:09:09serhiy.storchakalinkissue28255 messages
2016-09-26 19:09:09serhiy.storchakacreate