Message277451
| 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:09 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, xiang.zhang |
| 2016-09-26 19:09:09 | serhiy.storchaka | set | messageid: <1474916949.95.0.634939251187.issue28255@psf.upfronthosting.co.za> |
| 2016-09-26 19:09:09 | serhiy.storchaka | link | issue28255 messages |
| 2016-09-26 19:09:09 | serhiy.storchaka | create | |
|