hex question

Ethan Furman ethan at stoneleaf.us
Fri Jun 25 16:53:09 EDT 2010


Sneaky Wombat wrote:
> 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?

'\x0a' == '\n'




More information about the Python-list mailing list