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


Groups > comp.lang.python > #63249

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

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <drsalists@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.020
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'subject:Python': 0.06; 'absent': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'jan': 0.12; 'bugs.': 0.16; 'cc:name:python list': 0.16; 'subject:More': 0.16; 'subject:Unicode': 0.16; 'tends': 0.16; 'exception': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'wonder': 0.29; 'converting': 0.30; 'strongly': 0.30; 'message- id:@mail.gmail.com': 0.30; 'implicit': 0.31; 'subject:About': 0.31; 'but': 0.35; 'received:google.com': 0.35; 'much.': 0.36; 'raising': 0.36; 'error.': 0.37; 'thank': 0.38; 'pm,': 0.38; 'subject:"': 0.60; 'break': 0.61; 'conversion': 0.61; 'to:addr:gmail.com': 0.65; 'between': 0.67; 'nobody': 0.68; 'str.': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=46yyxPqBTS/Lr0Ja+kAHeoHpcJQ82rHsJ1bi6QXiTZk=; b=kB7e3zSRvu17Ww+/y2s+i2pN5LF2GOTWGSfRqAx+UwymosLI56zeCz2s7nxzbUPvST 9Eh9K84y0d61BGOCzumhn2M2n5aHlNpJYkmY56oL7pKt2/Vs1LyKzl0TYKo8v0BnHYx9 IDhRj8FJpJynadXD7rT0SyHN2IKIMKfmxlX7r7uyguc8vE5aYik7lLevFVXDEEBK8D8r 7CjDIk6aY3LTD20WmsvPuJ4o8ne97sJXwFzGzlZkQ9yOIfGS2zV79WmTcmpL5Fk46qE7 OOeD6tZOZGUtxR6IcIE5GdnjhEBprwcX6b3E5Yj7F9IBy3RgOmhFzCRKIhDxqrcnQhWo W6Yw==
MIME-Version 1.0
X-Received by 10.180.77.49 with SMTP id p17mr10060337wiw.30.1388968795905; Sun, 05 Jan 2014 16:39:55 -0800 (PST)
In-Reply-To <lacmi3$kfq$1@ger.gmane.org>
References <lablra$1mc$2@ger.gmane.org> <lacmi3$kfq$1@ger.gmane.org>
Date Sun, 5 Jan 2014 16:39:55 -0800
Subject Re: "More About Unicode in Python 2 and 3"
From Dan Stromberg <drsalists@gmail.com>
To Serhiy Storchaka <storchaka@gmail.com>
Content-Type text/plain; charset=ISO-8859-1
Cc Python List <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4992.1388968803.18130.python-list@python.org> (permalink)
Lines 9
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1388968803 news.xs4all.nl 2881 [2001:888:2000:d::a6]:38201
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:63249

Show key headers only | View raw


On Sun, Jan 5, 2014 at 2:32 PM, Serhiy Storchaka <storchaka@gmail.com> 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 like Python strongly typed, thank  you very much.  Please don't break it.

Not raising an exception when implicitly converting types tends to
lead to hard-to-track-down bugs.

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


Thread

Re: "More About Unicode in Python 2 and 3" Dan Stromberg <drsalists@gmail.com> - 2014-01-05 16:39 -0800

csiph-web