Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion [Python-checkins] peps: Add PEP 422: Dynamic Class Decorators

Received: by 10.216.70.142 with SMTP id p14mr4533927wed.7.1338931986977;
        Tue, 05 Jun 2012 14:33:06 -0700 (PDT)
X-BeenThere: dev-python@googlegroups.com
Received: by 10.180.104.161 with SMTP id gf1ls4304244wib.1.canary; Tue, 05 Jun
 2012 14:33:06 -0700 (PDT)
Received: by 10.216.141.199 with SMTP id g49mr4538768wej.12.1338931986828;
        Tue, 05 Jun 2012 14:33:06 -0700 (PDT)
Received: by 10.216.141.199 with SMTP id g49mr4538767wej.12.1338931986813;
        Tue, 05 Jun 2012 14:33:06 -0700 (PDT)
Return-Path: <python-dev-bounces+dev-python+garchive-30976=googlegroups....@python.org>
Received: from mail.python.org (mail.python.org. [82.94.164.166])
        by gmr-mx.google.com with ESMTPS id bk8si33259wib.1.2012.06.05.14.33.06
        (version=TLSv1/SSLv3 cipher=OTHER);
        Tue, 05 Jun 2012 14:33:06 -0700 (PDT)
Received-SPF: pass (google.com: domain of python-dev-bounces+dev-python+garchive-30976=googlegroups....@python.org designates 82.94.164.166 as permitted sender) client-ip=82.94.164.166;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of python-dev-bounces+dev-python+garchive-30976=googlegroups....@python.org designates 82.94.164.166 as permitted sender) smtp.mail=python-dev-bounces+dev-python+garchive-30976=googlegroups....@python.org; dkim=pass header...@python.org
Received: from albatross.python.org (localhost [127.0.0.1])
	by mail.python.org (Postfix) with ESMTP id 3W6R823lh4zNhp
	for <dev-python+garchive-30976@googlegroups.com>; Tue,  5 Jun 2012 23:33:06 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=python.org; s=200901;
	t=1338931986; bh=3u5glGh48W9ZlAG665hR6fY8QA5OznfZ6xthTm2h5is=;
	h=To:From:Date:Message-ID:References:Mime-Version:In-Reply-To:
	 Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:
	 List-Subscribe:Content-Transfer-Encoding:Content-Type:Sender;
	b=o8N4r6ZHSXgHUSt46Jfi3yQvoWjB6MR/mRH0342lyv+7bSm4rd5s+FSGVHZVCH/JN
	 oKJfP0gG3Fmz20cGHENttF/RKjIN2tnM/m9XJODFXbHXq9cHr0Xoa/9rY/8UdoclQf
	 9LJfn7D7H9nS9DjqSMq3POnUX72nlR27SRfs7Ywc=
X-Original-To: python-...@python.org
Delivered-To: python-...@mail.python.org
Received: from albatross.python.org (localhost [127.0.0.1])
	by mail.python.org (Postfix) with ESMTP id 3W6R6R4gHKzNVK
	for <python-...@python.org>; Tue,  5 Jun 2012 23:31:43 +0200 (CEST)
X-Spam-Status: OK 0.004
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:: [': 0.04;
	'subject:Python': 0.05; 'attribute': 0.07; 'terry': 0.09; 'used.':
	0.09; 'jan': 0.11; 'received:80.91': 0.16; 'received:80.91.229':
	0.16; 'received:gmane.org': 0.16; 'received:list': 0.16; 'reedy':
	0.16; 'reversing': 0.16; 'rule.': 0.16; 'subject:Add': 0.16;
	'subject:PEP': 0.16; 'wrote:': 0.17; 'translation': 0.18;
	'subject:] ': 0.19; 'decorators': 0.22; 'header:In-Reply-To:1':
	0.23; 'not,': 0.24; 'idea': 0.25; 'header:User-Agent:1': 0.26;
	'skip:[ 10': 0.28; 'header:X-Complaints-To:1': 0.28; 'context.':
	0.29; 'probably': 0.30; 'skip:_ 10': 0.31; 'correct': 0.33;
	'i.e.': 0.33; 'should': 0.35; 'there': 0.35; 'doing': 0.36; 'but':
	0.36; 'subject:: ': 0.37; 'store': 0.38; 'pm,': 0.38;
	'to:addr:python.org': 0.39; 'received:org': 0.39;
	'header:Received:5': 0.39; 'it.': 0.39; 'to:addr:python-dev':
	0.61; 'different': 0.63; 'making': 0.67; 'obvious': 0.72;
	'indirect': 0.84; 'received:fios.verizon.net': 0.84;
	'subject:Class': 0.91
Received: from localhost (HELO mail.python.org) (127.0.0.1)
	by albatross.python.org with SMTP; 05 Jun 2012 23:31:43 +0200
Received: from plane.gmane.org (plane.gmane.org [80.91.229.3])
	(using TLSv1 with cipher AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mail.python.org (Postfix) with ESMTPS
	for <python-...@python.org>; Tue,  5 Jun 2012 23:31:43 +0200 (CEST)
Received: from list by plane.gmane.org with local (Exim 4.69)
	(envelope-from <python-python-...@m.gmane.org>) id 1Sc1Lo-00060X-Tg
	for python-...@python.org; Tue, 05 Jun 2012 23:31:40 +0200
Received: from pool-74-109-121-73.phlapa.fios.verizon.net ([74.109.121.73])
	by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
	id 1AlnuQ-0007hv-00
	for <python-...@python.org>; Tue, 05 Jun 2012 23:31:40 +0200
Received: from tjreedy by pool-74-109-121-73.phlapa.fios.verizon.net with
	local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00
	for <python-...@python.org>; Tue, 05 Jun 2012 23:31:40 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: python-...@python.org
From: Terry Reedy <tjre...@udel.edu>
Date: Tue, 05 Jun 2012 17:31:15 -0400
Lines: 28
Message-ID: <jqltrj$10...@dough.gmane.org>
References: <E1SbsZw-0003dn...@dinsdale.python.org> <4FCE36FE.3080...@udel.edu>
	<CALeMXf5YWVXXSu1zpxEOVjH8wjAVfD=FpbkvXFJMCdvt03z...@mail.gmail.com>
Mime-Version: 1.0
X-Complaints-To: use...@dough.gmane.org
X-Gmane-NNTP-Posting-Host: pool-74-109-121-73.phlapa.fios.verizon.net
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64;
	rv:8.0) Gecko/20111105 Thunderbird/8.0
In-Reply-To: <CALeMXf5YWVXXSu1zpxEOVjH8wjAVfD=FpbkvXFJMCdvt03z...@mail.gmail.com>
Subject: Re: [Python-Dev] [Python-checkins] peps: Add PEP 422: Dynamic Class
	Decorators
X-BeenThere: python-...@python.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Python core developers <python-dev.python.org>
List-Unsubscribe: <http://mail.python.org/mailman/options/python-dev>,
	<mailto:python-dev-requ...@python.org?subject=unsubscribe>
List-Archive: <http://mail.python.org/pipermail/python-dev>
List-Post: <mailto:python-...@python.org>
List-Help: <mailto:python-dev-requ...@python.org?subject=help>
List-Subscribe: <http://mail.python.org/mailman/listinfo/python-dev>,
	<mailto:python-dev-requ...@python.org?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: python-dev-bounces+dev-python+garchive-30976=googlegroups....@python.org
Errors-To: python-dev-bounces+dev-python+garchive-30976=googlegroups....@python.org

On 6/5/2012 2:26 PM, PJ Eby wrote:
> On Tue, Jun 5, 2012 at 12:42 PM, Terry Reedy <tjre...@udel.edu
> <mailto:tjre...@udel.edu>> wrote:

>     I think you should just store the decorators in the correct order of use
>     +        __decorators__ = [deco1, deco2]
>     and avoid the nonsense (time-waste) of making an indirect copy via
>     list_iterator and reversing it each time the attribute is used.
>
>
> It's for symmetry and straightforward translation with stacked
> decorators, i.e. between:
>
> @deco1
> @deco2
> [declaration]
>
> and __decorators__ = [deco1, deco2]
>
> Doing it the other way now means a different order for people to
> remember; there should be One Obvious Order for decorators, and the one
> we have now is it.

You and I have different ideas of 'obvious' in this context. But since 
you will use this and and me probably not, let your idea rule.

-- 
Terry Jan Reedy

_______________________________________________
Python-Dev mailing list
Python-...@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/dev-python%2Bgarchive-30976%40googlegroups.com