Please help on print string that contains 'tab' and 'newline'

Steven D'Aprano steve+comp.lang.python at pearwood.info
Sun Jan 28 21:03:19 EST 2018


On Sun, 28 Jan 2018 19:51:06 -0500, Jason Qian via Python-list wrote:

> print(repr(message))  out :
> 
> *does not exist\r\n\tat com.*

For the record, I'd just like to say that this is not the output of 
Jason's call to print(). It has been edited to remove the 

b' '

delimiters which would have solved the problem: he isn't printing a 
string at all, he is printing bytes.

Jason, you have wasted our time by editing your output to hide what it 
actually shows. Don't do that again. When we ask to see the output of 
something, we need to see the ACTUAL output, not an edited version.


-- 
Steve




More information about the Python-list mailing list