替代装饰器语法 - 投票结果如此之快 - 我们完成了吗? [英] Alternative decorator syntax - POLL RESULTS SO FAR - ARE WE DONE?

查看:58
本文介绍了替代装饰器语法 - 投票结果如此之快 - 我们完成了吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗯,经过3天的公开投票后,额外投票的数量已经大幅下降了
。以下是迄今为止的结果:


总选民:55(每人3票)

每个选择或一组选择的投票:

任意J 81

J2 78

任意C 40

C1 29

任何D 9

C2 8

D2 6

F 6

L 5

任意E 5

A1 4

H 4

K 4

任意A 4

B 3

D1 3

E1 3

C3 2

我2

J1 2

C4 1

E2 1

E4 1

J3 1

M 1

A2 0

E3 0

G 0

J4 0


这将使得J2和C1成为投票者中最受欢迎的人物之一,其中2:1和3:1之间的价格更受青睐。在所有投票中,J2

收到48%,C1收到18%。没有其他选择获得超过10%的

任何选票。


但是,multivote格式为我们提供了一些额外信息,超过了

传统的一人一票格式。在55名选民中,75%的人投票给了对于J2最少一票的投票,而只有35%投了一票或多票。从建立共识的角度来看,我发现这个统计数据比原始投票数更具吸引力。它告诉我,3/4的投票样本对J2提出的选项最不开放,因此开发社区接受b $ b b更有可能更快地发生J2比使用C1。


我相信Anthony Baxter对Guido'对接下来发生的事情的意图的读取是相当准确的(Anthony)我一直非常活跃在python-dev和

关于这个主题的私人电子邮件中,我很确定他的观点超过了我们这里的大部分内容。 clpy) - 我认为Guido已经挑战我们团结* * *

替代当前的@语法,并且从这次调查中,我认为J2是我们的

集体最好的选择。我确实*不认为Guido计划在选择的替代方案和@语法之间进行一次决胜,但是他也不会给一个人提供很多

的信任。它被举行了 - 记住BDFL中的D代表什么。

但我认为他*会很高兴在提出的语法提案之中

,这个相当无组织和无组织的团队

将会关闭并迎接他的挑战,并确定* * *

替代选项。我相信罗伯特布鲁尔的技术讨论和迈克尔斯帕克斯的实施将至少使他认真考虑我们的共识选择作为@的可行替代方案。语法。


我确定有很多人在询问55是否足以确定Python社区的愿望。
。我没有回应其他

而不是说这个民意调查是在一个开放的Usenet论坛上发布的,而且它很快收集到了广泛的回复(尽管有很多回复)人们

只是厌倦了谈论和阅读有关装饰者的事情),并且

的回复率似乎正在下降。我怀疑额外的

时间会显着改变结果。而且我不确定采取何种其他措施来获取进一步的回复。如果还有其他论坛可以获得这些输入,我希望那些关注clpy

的人已经联系过他们参与。


所以我想建议我们共同推进J2作为我们的

选择的替代方案。我会说那些提出其他

替代品的人不是输家。在这一点上,他们将有价值的思想和讨论纳入了这个整体主题。事实上,过去几个月,J2提案的演变超过了
,我相信这部分是由于其他提案中提出的概念的影响。我相信C1和J2都是清晰的,Pythonic,并且令人赏心悦目,但为了向前移动,我们需要把精力集中在一个从这里开始单向。

如果我们继续推广我们的其他各种收藏,我认为它确实相当于

我们都会在发布后输入@字符2.4出来。


请开始考虑''decorate''关键字应该是什么。

如果我们可以得到/保持这个选择一个可管理的清单,那么下周我们应该有另外一个时间来进行另一个multivote。


- 保罗


Well, after 3 days of open polling, the number of additional votes have
dropped off pretty dramatically. Here are the results so far:

Total voters: 55 (with 3 votes each)
Votes for each choice or group of choices:
Any J 81
J2 78
Any C 40
C1 29
Any D 9
C2 8
D2 6
F 6
L 5
Any E 5
A1 4
H 4
K 4
Any A 4
B 3
D1 3
E1 3
C3 2
I 2
J1 2
C4 1
E2 1
E4 1
J3 1
M 1
A2 0
E3 0
G 0
J4 0

This would put J2 and C1 as the clear favorites among those who voted, with
J2 between 2:1 and 3:1 more strongly favored. Of all of the votes cast, J2
received 48%, C1 received 18%. No other option received more than 10% of
any votes.

However, the multivote format gives us some additional information, over
conventional "one-person-one-vote" format. Of the 55 voters, 75% cast at
least one vote for J2, while only 35% cast one or more votes for C1. From
the standpoint of building concensus, I find this statistic more compelling
than the raw vote count. It tells me that 3/4 of the voting sample are at
least open to the option presented by J2, so that developing community
acceptance is more likely to happen more quickly with J2 than with C1.

I believe that Anthony Baxter''s read of Guido''s intentions on what happens
next are fairly accurate (Anthony has been very active on python-dev and in
private e-mails on this subject, and I''m sure his view is more than most of
us here on c.l.py) - I think Guido has challenged us to rally around *one*
alternative to the current @ syntax, and from this poll, I think J2 is our
collective best bet. I do *not* think that Guido plans to have a run-off
between the chosen alternative and the @ syntax, nor that he would give much
credence to one if it were held - remember what the D in BDFL stands for.
But I think he *will* be pleased that among the babel of syntax proposals
that have been put forward, this fairly unstructured and unorganized group
will have come to closure and met his challenge, and settled on *one*
alternative option. I believe that Robert Brewer''s technical discussion and
Michael Sparks'' implementation will at least cause him to seriously consider
our concensus choice as a viable alternative to the @ syntax.

I''m sure that there are many asking if 55 is a sufficient sample for
determining the wishes of the Python community. I have no response other
than to say that this poll was posted on an open Usenet forum, and that it
quickly gathered a breadth of responses (despite the fact that many people
are just tired of talking and reading about decorators), and that the
response rate noe looks to be dropping off. I am skeptical that additional
time will significantly change the results. And I''m not sure what other
measures to take to obtain further responses. If there are other forums for
eliciting these inputs, I would have hoped that those who follow c.l.py
would have already contacted them for their participation.

So I would like to propose that we collectively move forward with J2 as our
selected alternative. I would say that those who proposed other
alternatives are not "the losers" in this, that they put valued thought and
discussion into this overall topic. In fact, the J2 proposal evolved over
the past several months, and I believe this is in part due to the influence
of concepts put forth in other proposals. I believe that both C1 and J2 are
clear, Pythonic, and pleasing to the eye, but in the interests of moving
forward, we need to focus our efforts in a single direction from here on.
If we continue to promote our other various favorites, I think it''s fairly
certain that we will all be typing @ characters after release 2.4 comes out.

Please start giving some thought to what the ''decorate'' keyword should be.
If we can get/keep this selection to a manageable list, then we should have
another multivote some time next week.

-- Paul


推荐答案

" Paul McGuire" < PT *** @ austin.rr._bogus_.com>写道:
"Paul McGuire" <pt***@austin.rr._bogus_.com> writes:
请开始考虑''decorate''关键字应该是什么。
Please start giving some thought to what the ''decorate'' keyword should be.




看起来像声明给我;-)



Looks like "declare" to me ;-)


>
请开始考虑''decorate''关键字应该是什么。
如果我们能够将这个选择保持在一个可管理的列表中,那么下周我们就应该有一段时间了。

- Paul
Please start giving some thought to what the ''decorate'' keyword should be.
If we can get/keep this selection to a manageable list, then we should have
another multivote some time next week.

-- Paul



''predef'怎么样?


--Nick


How about ''predef''?

--Nick


On Sun,2004年8月22日02:53: 09 +0000,Paul McGuire写道:
On Sun, 22 Aug 2004 02:53:09 +0000, Paul McGuire wrote:
请开始考虑''decorate''关键字应该是什么。
如果我们可以得到/保持这个选择一个可管理的清单,那么下周我们应该有另一个时间。
Please start giving some thought to what the ''decorate'' keyword should be.
If we can get/keep this selection to a manageable list, then we should have
another multivote some time next week.




如果你仍然对潜伏者的建议持开放态度,我很偏爱

的语法可以像普通语言一样阅读(这就是我喜欢Python的原因之一和

我有点不喜欢@sintax)。因此我想建议

在J2关键字中使用,例如''using''或'with'',这也暗示了这个事实

这只是声明套件的第一部分将是def声明继续




Ciao

- ------

FB



If you are still open to lurkers suggestions, I''m partial to syntax that
can be read like common language (this is one reason why I like Python and
I mildly dislike the @ sintax). Therefore I would like to suggest
to use in J2 keywords like ''using'' or ''with'', which also hint to the fact
that this is only the first part of a declaration suite that will be
continued by the ''def'' statement.

Ciao
-------
FB


这篇关于替代装饰器语法 - 投票结果如此之快 - 我们完成了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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