hex question

Sneaky Wombat joe.hrbek at gmail.com
Fri Jun 25 16:20:17 EDT 2010


Why is python turning \x0a into a \n ?

In [120]: h='\x0a\xa8\x19\x0b'

In [121]: h
Out[121]: '\n\xa8\x19\x0b'


I don't want this to happen, can I prevent it?




More information about the Python-list mailing list