add two strings

Dave Angel d at davea.name
Mon Jan 30 08:23:22 EST 2012


On 01/30/2012 08:02 AM, contro opinion wrote:
>>>> s1='\x45'
>>>> s2='\xe4'
>>>> s1+s2
> 'E\xe4'
>>>> print  s1+s2
> E
>
> why  s1+s2  not  =  '\x45\xe4'??
>
It is.  "E" is  "\x45".  That's plain ASCII and documented everywhere.



-- 

DaveA




More information about the Python-list mailing list