Printing Hidden Character in Python

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Thu Oct 26 12:49:24 EDT 2006


Wijaya Edward wrote:

> How can we print out the hidden character like
> "\n", "\r" etc in Python?

Try

repr(var)[1:-1]

CMIIW. :)

Regards,


Björn

-- 
BOFH excuse #271:

The kernel license has expired




More information about the Python-list mailing list