On Fri, Jan 23, 2015 at 4:06 PM, Rustom Mody <rustompm...@gmail.com> wrote:
> As for string and number how is
> "1" + "2" == "12"
> related to
> 1+2 == 3
> ??

They're both adding stuff together. Makes good sense.

Personally, I'd like str+int -> str, eg "1"+2 == "12", but Python
decided otherwise. We definitely agree on str+str though.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to