Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'broken': 0.04; 'languages.': 0.04; 'received:134': 0.05; 'subject:Python': 0.06; 'broke': 0.09; 'deemed': 0.09; 'literal': 0.09; "people's": 0.09; 'stating': 0.09; 'subject:language': 0.09; 'python': 0.11; "wouldn't": 0.14; '"to': 0.16; 'argument.': 0.16; 'backward': 0.16; 'braces': 0.16; 'devs': 0.16; 'dictionary,': 0.16; 'function?': 0.16; 'set,': 0.16; 'subject: \n ': 0.16; 'subject:?)': 0.16; 'subject:unicode': 0.16; 'language': 0.16; 'wrote:': 0.18; '3.0': 0.19; 'not,': 0.20; 'print': 0.22; 'header :User-Agent:1': 0.23; 'either.': 0.24; 'necessary.': 0.24; 'developers': 0.25; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; '25,': 0.31; 'breaking': 0.31; 'handled': 0.32; 'maybe': 0.34; 'could': 0.34; 'but': 0.35; 'set.': 0.36; 'transition': 0.36; "didn't": 0.36; 'changing': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; "couldn't": 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'break': 0.61; 'places': 0.64; 'more': 0.64; 'different': 0.65; 'benefit': 0.68; 'mar': 0.68; 'stated': 0.69; 'programs,': 0.74; 'potentially': 0.81; 'subject:this': 0.83; 'claim.': 0.84; 'pardon': 0.84; 'worthwhile.': 0.84; 'contrary': 0.95 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqAEACRxMVOGuA9G/2dsb2JhbABZhx+/ZIE4gxkBAQEDASNVBgsLGAICBRYLAgIJAwIBAgFFEwYCAodtCKxQm2WGWxeBKY1MFoJZgUkEmE2GNYt9gXCBPw Date: Tue, 25 Mar 2014 13:07:45 +0100 From: Antoon Pardon User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Icedove/24.3.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Time we switched to unicode? (was Explanation of this Python language feature?) References: <9daf0806-02de-4447-964c-c8f8953c23e5@googlegroups.com> <532d5bd9$0$29994$c3e8da3$5496439d@news.astraweb.com> <0b78649a-16b3-4410-8258-e859578d62be@googlegroups.com> <53060a97-44fb-4e53-a7a7-d5eeed416f62@googlegroups.com> <5331595D.5020008@rece.vub.ac.be> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: 31 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1395749268 news.xs4all.nl 2955 [2001:888:2000:d::a6]:44684 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:69012 On 25-03-14 12:12, Chris Angelico wrote: > On Tue, Mar 25, 2014 at 9:24 PM, Antoon Pardon > wrote: >> No they didn't have to. With the transition to python3, the developers >> could have opted for empty braces to mean an empty set. And if they >> wanted a literal for an empty dictionary, they might have chosen {:}. >> Backward-compatibility was already broken so that wasn't an argument. > Python 3.0 didn't just say "to Hades with backward compatibility". The > breakage was only in places where it was deemed worthwhile. Changing > the meaning of {} would have only small benefit and would potentially > break a LOT of programs, so the devs were right to not do it. More programs than those who broke because print was now a function? Do you think it would have been so problamatic that it couldn't have been handled by '2to3'? Maybe breaking backward-compatibility wasn't considered worthwhile, but that is not the same as stating backward-compatibility was necessary. And that is how I understood how you stated your claim. > Python 3 and Python 2 are not, contrary to some people's opinions, > completely different languages. And changing the meaning of {} to now indicate the emppty set, wouldn't have turned it in a completely different language either. -- Antoon Pardon.