Python is DOOMED! Again!

Chris Angelico rosuav at gmail.com
Fri Jan 23 00:33:54 EST 2015


On Fri, Jan 23, 2015 at 4:06 PM, Rustom Mody <rustompmody at 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



More information about the Python-list mailing list