Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '(even': 0.05; 'subject:Python': 0.06; 'python3': 0.07; 'string': 0.09; 'mess': 0.09; 'subject:language': 0.09; 'cc:addr:python-list': 0.11; 'language.': 0.14; '"python': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'incomplete': 0.16; 'on)': 0.16; 'personally,': 0.16; 'subject: \n ': 0.16; 'unicode,': 0.16; 'wrote:': 0.18; 'library': 0.18; 'wed,': 0.18; 'meant': 0.20; 'cc:addr:python.org': 0.22; 'byte': 0.24; 'unicode': 0.24; 'cc:2**0': 0.24; 'right.': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'said,': 0.30; 'subject:list': 0.30; 'message- id:@mail.gmail.com': 0.30; '(which': 0.31; 'getting': 0.31; 'argue': 0.31; 'becoming': 0.31; 'helpful.': 0.31; "i'd": 0.34; 'could': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'useful': 0.36; 'being': 0.38; '(3)': 0.38; 'fact': 0.38; 'rather': 0.38; 'expect': 0.39; 'changed': 0.39; 'skip:u 10': 0.60; 'future': 0.60; 'such': 0.63; 'finally': 0.65; 'default': 0.69; 'apart': 0.72; 'subject:this': 0.83; 'rexx,': 0.84; 'to:none': 0.92 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:cc :content-type; bh=RWO4TyKQFcgtXIMaHbTmHBDP+AUN8pdAhIqipSOZXcc=; b=odVWYWtyTaCmk3+3Zyj1BFybCHwygaimwEKFJwjQt4rSMOfPNtEkxK8A6sxkb69D5u H0h+BHwnBIyE15XPkZUtW6xX8ZSrzarPt5jUoUohOp4zZ7ZNc8cylrzMTDNCCQnD3sJN f8eq+S9JCCjPjh3Jzoq0k7J+vW1YDL9DOs6c66oZ3frPh3wrbZXzBvUHwjngdj/1TPRN Ks/hY87tT6maQKFcDQ6jEMIJpbAIJNYbEKjtpMkbKTeg53Y+Cu6xJZZvKVy9eWPdawXe wrTe+yknOYwWcS+NAZZgknN1U6wOhkMkhN0rVUzX9o8HvJ7Cln0RdDQAIkwBwGz8yufw U+1g== MIME-Version: 1.0 X-Received: by 10.68.112.164 with SMTP id ir4mr5473336pbb.153.1396388962052; Tue, 01 Apr 2014 14:49:22 -0700 (PDT) In-Reply-To: References: <9daf0806-02de-4447-964c-c8f8953c23e5@googlegroups.com> <87ior3w740.fsf@elektro.pacujo.net> <5334c38e$0$29994$c3e8da3$5496439d@news.astraweb.com> <53364327$0$29994$c3e8da3$5496439d@news.astraweb.com> <53365F55.2040302@gmail.com> <533836c4$0$29994$c3e8da3$5496439d@news.astraweb.com> Date: Wed, 2 Apr 2014 08:49:21 +1100 Subject: Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list) From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1396388970 news.xs4all.nl 2974 [2001:888:2000:d::a6]:44842 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:69526 On Wed, Apr 2, 2014 at 8:26 AM, Mark H Harris wrote: > Python3 finally started getting unicode right. The fact that it 'existed' > in some form prior to (3) is not meaningful, nor helpful. > When I said, "python has only really used it since python3, right?," I meant > that unicode in python2 was a mess (and incomplete, and I could go on) but > finally---in python3---it is becoming useful (even though it still has > glitches). I don't know why we need to argue about it. Please elaborate. Apart from the default double-quoted string being a byte string (which can be changed with a future directive), and the consequent likelihood that library functions will expect str rather than unicode, what was such an incomplete mess in Py2 that made Unicode completely useless? Personally, I'd still rather work with Unicode in Py2 than in C, REXX, or any other completely Unicode-naive language. ChrisA