print function and unwanted trailing space

Steven D'Aprano steve+comp.lang.python at pearwood.info
Sat Aug 31 11:18:02 EDT 2013


On Sat, 31 Aug 2013 14:59:17 +0200, candide wrote:

> Le 31/08/2013 13:16, Steven D'Aprano a écrit :
> 
> 
>> Of course it does. Have you actually tried it?
> 
> 
> Of course I did, redirecting the output to a file in order to spot an
> eventually trailing space. I did the same for the Python 3 code.


Fair enough. Seems like the print statement implementation in Python 2 is 
uglier than I imagined, keeping hidden state between invocations.



-- 
Steven



More information about the Python-list mailing list