替代装饰器语法决定 [英] Alternative decorator syntax decision

查看:67
本文介绍了替代装饰器语法决定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

python-dev邮件列表上有很多消息表明

,Guido正在寻找一些关于

*的共识一个*装饰器的替代语法我们希望他在

中考虑当前在2.4a2中的@语法。


我想特别感谢由于:

- Anthony Baxter在这方面继续努力

- Steven Bethard对这一主题的一些最清晰的思考和写作

- 迈克尔·斯帕克斯实际上实现了其中一个选项


我们已经完成了投球和抱怨的所有份额,但我们需要坚持

* Guido要考虑的一个*选项。


(让我们不要抱怨抱怨流程被跟踪

in this整个事情,我个人认为这很糟糕。但是,让我们用我们已经处理过的牌来玩

,至少马这是一个集体提案。)


重要的替代方案已在Python维基上列出
http://www.python.org/moin/PythonDecorators


有兴趣的人士也应该看看上个月在python-dev

存档中的评论,
http://mail.python.org/pipermail/pyt...st/thread.html


我建议进行多种调查:每张海报在上面的Wiki页面上的

字母选项中获得3票。您可以将所有3个选项用于单个

选项,或者如果您打开超过

一个选项,则将它们分成2个或3个选项。

我不会认为这在任何方面都是科学的,但是它应该*允许主要的1或2选择冒泡到顶部。我过去曾经多次使用

这个过程,因为一个

大组需要在一大堆选项中设置优先级。


我的投票是:J2 J2 C1


顺便说一句,一旦选择了一个选项,它*仍然*需要一个
$ b $ i实施Guido接受它。在我看来,这会让一些选项比其他选项更好。


(让我们希望我们至少获得同样好的选择响应为平均年龄

线程!)


- 保罗

There are a number of messages on the python-dev mail list that indicate
that Guido is looking for some concensus to come from this list as to what
*one* alternative syntax for decorators we would like him to consider in
place of the @ syntax that is currently in 2.4a2.

I think special thanks are due to:
- Anthony Baxter for his continuing efforts in this regard
- Steven Bethard for some of the clearest thinking and writing on this topic
- Michael Sparks for actually implementing one of the options

We''ve all done our share of pitching and whining, but we need to settle on
*one* option for Guido to consider.

(And let''s not get wrapped up complaining about the "process" being followed
in this whole thing, personally I think it is quite poor. But let''s play
with the cards we''ve been dealt, and at least make a collective proposal.)

The significant alternatives have been listed on the Python wiki at
http://www.python.org/moin/PythonDecorators .

Interested parties should also look at the comments in the python-dev
archive for the past month, at
http://mail.python.org/pipermail/pyt...st/thread.html .

I would propose a multivote survey: each poster gets 3 votes among the
lettered choices on the Wiki page above. You can use all 3 for a single
option, or split them across 2 or 3 options if you are open to more than
one.

I am not going to argue that this is scientific in any respect, but it
*should* allow the major 1 or 2 choices to bubble to the top. I have used
this process at work many times in the past when it was necessary for a
large group to set priorities among a large list of choices.

My vote is: J2 J2 C1

By the way, once an option has been chosen, it *still* needs an
implementation for Guido to accept it. This puts some of the options way
ahead of the others, in my mind.

(And let''s hope we get at least as good a response as the "average age"
thread!)

-- Paul

推荐答案

Paul McGuire写道:
Paul McGuire wrote:
我想特别感谢:
- Anthony Baxter在这方面继续努力
- Steven Bethard关于这个主题的一些最清晰的思考和写作
- 迈克尔斯帕克斯实际上实现了其中一个选项



我肯定会第二个这么特别感谢。

我建议进行多种调查:每张海报在上面的Wiki页面上的
字母选项中获得3票。您可以将所有3个选项用于单个
选项,或者如果您打开超过
的选项,则可以将它们分成2个或3个选项。
I think special thanks are due to:
- Anthony Baxter for his continuing efforts in this regard
- Steven Bethard for some of the clearest thinking and writing on this topic
- Michael Sparks for actually implementing one of the options


I''d definitely second these special thanks.
I would propose a multivote survey: each poster gets 3 votes among the
lettered choices on the Wiki page above. You can use all 3 for a single
option, or split them across 2 or 3 options if you are open to more than
one.



这似乎是一种相当合理的方式,至少可以获得一致的估计值。我还建议,如果在一个主题的微小变化之间分配了大量的

票数(即

,它们在什么字符/关键字上有所不同使用),可能是

被视为一笔款项。例如,如果E1和E2是第二个和第二个最受欢迎的选择,总价格高于

最受欢迎的选择,它我认为将它们视为赢家是合理的。然后讨论哪个角色是首选。这是很难编纂的,但是,因为一些编号的变种是

显着不同而其他的只是略有不同......


我的投票:J2 J2 E2


Jeff Shannon

技术员/程序员

Credit International



This seems like a fairly reasonable way of at least getting an
estimation of concensus. I''d also suggest that, if there''s a large
number of votes distributed between minor variations on a theme (i.e.
they differ as to what character/keyword to use), that might be
considered as a sum. If, for example, E1 and E2 are the second and
third most popular choices, with a total that''s higher than that of the
most popular choice, it seems reasonable to me to consider them to be
the "winner" and to then discuss which character is preferred. This is
hard to codify, however, as some of the numbered variants are
significantly different while others are only slightly different...

My votes: J2 J2 E2

Jeff Shannon
Technician/Programmer
Credit International


Paul McGuire写道:
Paul McGuire wrote:
python-dev邮件列表上有许多消息表明Guido正在寻找
关于装饰器的一个*替代语法,我们希望他在当前位于2.4a2的@语句的位置考虑一些共识。

我想特别感谢:
- Anthony Baxter在这方面继续努力
- Steven Bethard对这一主题的一些最清晰的思考和写作
- Michael Sparks for实际上实现了其中一个选项

我们已经完成了我们的投球和分享抱怨,但我们需要选择
*一个*选项供Guido考虑。

(让我们不要抱怨抱怨过程)在整个事情中被跟踪
,我个人认为这很糟糕。但是,让我们玩我们已经处理的卡片,至少提出一个集体提案。)

重要的替代方案已列在Python维基上
http://www.python.org/moin/PythonDecorators

有兴趣的人士也应该查看过去一个月内python-dev
存档中的评论,
http://mail.python.org/pipermail/pyt...st/thread.html

我建议进行多种调查:每张海报在上面的Wiki页面上的
字母选项中获得3票。你可以使用所有3个单独的
选项,或者如果你打开超过一个选项,可以将它们分成两个或三个选项。

我不会争辩说这在任何方面都是科学的,但它应该*允许主要的1或2选择冒泡到顶部。我过去多次使用这个过程,当一个大型团队需要在一大堆选择中设置优先级时。

我的投票是: J2 J2 C1

顺便说一句,一旦选择了一个选项,它仍然*需要一个
实现让Guido接受它。在我的脑海中,这使得一些选择方式优先于其他选项。
There are a number of messages on the python-dev mail list that indicate
that Guido is looking for some concensus to come from this list as to what
*one* alternative syntax for decorators we would like him to consider in
place of the @ syntax that is currently in 2.4a2.

I think special thanks are due to:
- Anthony Baxter for his continuing efforts in this regard
- Steven Bethard for some of the clearest thinking and writing on this topic
- Michael Sparks for actually implementing one of the options

We''ve all done our share of pitching and whining, but we need to settle on
*one* option for Guido to consider.

(And let''s not get wrapped up complaining about the "process" being followed
in this whole thing, personally I think it is quite poor. But let''s play
with the cards we''ve been dealt, and at least make a collective proposal.)

The significant alternatives have been listed on the Python wiki at
http://www.python.org/moin/PythonDecorators .

Interested parties should also look at the comments in the python-dev
archive for the past month, at
http://mail.python.org/pipermail/pyt...st/thread.html .

I would propose a multivote survey: each poster gets 3 votes among the
lettered choices on the Wiki page above. You can use all 3 for a single
option, or split them across 2 or 3 options if you are open to more than
one.

I am not going to argue that this is scientific in any respect, but it
*should* allow the major 1 or 2 choices to bubble to the top. I have used
this process at work many times in the past when it was necessary for a
large group to set priorities among a large list of choices.

My vote is: J2 J2 C1

By the way, once an option has been chosen, it *still* needs an
implementation for Guido to accept it. This puts some of the options way
ahead of the others, in my mind.




J2 LL


我希望一旦主要的两个选择左右清楚,还有另外一个关于如何选择一个的讨论


David



J2 L L

I hope once the major 2 choices or so are clear that there is another
discussion about how to select one

David


Jeff Shannon写道:
Jeff Shannon wrote:
我的投票:J2 J2 E2
My votes: J2 J2 E2




我是第二个。 (J2 J2 E2)


-Peter



I second that. (J2 J2 E2)

-Peter


这篇关于替代装饰器语法决定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆