(original) (raw)

[From nobody Tue Apr 10 21:05:21 2007 Return-Path: gvanrossum@gmail.com Received: from mr14.lnh.mail.rcn.net (EHLO mr14.lnh.mail.rcn.net) ([207.172.157.34]) by ms09.lnh.mail.rcn.net (MOS 3.7.5a-GA FastPath queued) with ESMTP id BEU85878; Tue, 10 Apr 2007 14:53:29 -0400 (EDT) Received: from mx06.lnh.mail.rcn.net (mx06.lnh.mail.rcn.net [207.172.157.56]) by mr14.lnh.mail.rcn.net (MOS 3.8.3-GA) with ESMTP id GSH72819; Tue, 10 Apr 2007 14:53:28 -0400 (EDT) Received: from wx-out-0506.google.com ([66.249.82.234]) by mx06.lnh.mail.rcn.net with ESMTP; 10 Apr 2007 14:53:28 -0400 Received: by wx-out-0506.google.com with SMTP id h26so1891229wxd for python@rcn.com; Tue, 10 Apr 2007 11:53:27 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=jTy+8TiQl1swUzu5P1kOtevB7EHEq2QxSvzDNPDW6ZUZWb4ees6Fnz7AhkRYpR8G8muV+XIq8D0A6g1Rvh2MnABEfGgDUN/hLXQktk0r+E3RXZ4kykv8ACDS+jQYd5JAeBK9NEkfIdPkQKBLBe0MbRC2QIg5CntCOQgWwOODxuA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=B6tqBucLcA5cX2f7hY7iOvFFkM0B5Q6nZeJEBMy9NS1827k6Itv39AUli2/IUfcEtiXH4+jcFp6Icdg4vBSgT5RcyITf73dn5IAsUswKhGfDiQuKdsyD1M6j3gSldK6LFhH+HkIHLiZR4et1SIyKMTnrZgBAOHP+IAlG2v4J21s= Received: by 10.70.11.5 with SMTP id 5mr13266455wxk.1176231207872; Tue, 10 Apr 2007 11:53:27 -0700 (PDT) Received: by 10.70.57.9 with HTTP; Tue, 10 Apr 2007 11:53:27 -0700 (PDT) Message-ID: ca471dc20704101153n5df63f26m80e21c5eabbe11b8@mail.gmail.com Date: Tue, 10 Apr 2007 11:53:27 -0700 From: "Guido van Rossum" guido@python.org Sender: gvanrossum@gmail.com To: python@rcn.com Subject: Re: [Python-3000] Reminder: Py3k PEPs due by April Cc: "Python 3000" python-3000@python.org In-Reply-To: 20070410144210.BEU81714@ms09.lnh.mail.rcn.net MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: 20070410144210.BEU81714@ms09.lnh.mail.rcn.net X-Google-Sender-Auth: fabcc814bc6454c2 X-Junkmail-Status: score=10/50, host=mr14.lnh.mail.rcn.net X-Junkmail-SD-Raw: score=unknown, refid=str=0001.0A090206.461BDD28.00FD,ss=1,fgs=0, ip=66.249.82.234, so=2006-12-09 10:45:40, dmn=5.3.10/2007-02-21 On 4/10/07, Raymond Hettinger python@rcn.com wrote: > Thanks for the reminder. I expect to write two: > > * PEP to eliminate __del__ in favor of weakref idioms > > * PEP on simpler alternative to abstract-base-classes > suggesting an occasional method special attribute > (so for instance a __getitem__ method can tell you > whether it thinks it is a sequence or mapping). > > Here's that I think might not need a PEP: > > * Eliminate implicit string concatenation: "abc" "def" > in favor of an explicit + operation. That simplifies > the grammar just a bit and the compiler already is > smart enough to do constant fold this operation at > compile time. When there are multi-line concats, I think > the parenthesis serves us much better than a trailing \ > which is ugly and relies on having no trailing whitespace. > Replace: > 'hello ' \ > 'world ' > With: > ('hello ' + > 'world ') That needs a PEP too; there are subtle issues like ('hello %s' 'world' % 42) -- --Guido van Rossum (home page: http://www.python.org/\~guido/) ]