Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #19600 > unrolled thread

Re: add two strings

Started byDave Angel <d@davea.name>
First post2012-01-30 08:23 -0500
Last post2012-01-30 08:23 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: add two strings Dave Angel <d@davea.name> - 2012-01-30 08:23 -0500

#19600 — Re: add two strings

FromDave Angel <d@davea.name>
Date2012-01-30 08:23 -0500
SubjectRe: add two strings
Message-ID<mailman.5214.1327929840.27778.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web