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


Groups > comp.lang.python > #63240

Re: "More About Unicode in Python 2 and 3"

From Emile van Sebille <emile@fenx.com>
Subject Re: "More About Unicode in Python 2 and 3"
Date 2014-01-05 15:31 -0800
References <lablra$1mc$2@ger.gmane.org> <lacmi3$kfq$1@ger.gmane.org>
Newsgroups comp.lang.python
Message-ID <mailman.4983.1388964713.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 01/05/2014 02:32 PM, Serhiy Storchaka wrote:
> I wonder why nobody complains about the absent of implicit conversion
> between int and str. In PHP you can write 2 + "3" and got 5, but in
> Python this is an error. So sad!


I'd want my implicit conversion of 2 + '3' to get '23'

That's why it's not there...

Emile

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: "More About Unicode in Python 2 and 3" Emile van Sebille <emile@fenx.com> - 2014-01-05 15:31 -0800

csiph-web