Printing Hidden Character in Python

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Thu Oct 26 18:49:24 CEST 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