合同编程状况(PEP 316)? [英] status of Programming by Contract (PEP 316)?

查看:72
本文介绍了合同编程状况(PEP 316)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我偶然发现了PEP 316:Python合同编程

http://www.python.org/dev/peps/pep-0316/) 。这对于Python来说是一个很好的补充,但是我看到它在2003年被提交了,

并且它的状态是延迟的。我快速搜索了

comp.lang.python,

但我似乎没有看到太多。有谁知道真正的

状态是什么让它成为标准的Python?谢谢。

I just stumbled onto PEP 316: Programming by Contract for Python
(http://www.python.org/dev/peps/pep-0316/). This would be a great
addition to Python, but I see that it was submitted way back in 2003,
and its status is "deferred." I did a quick search on
comp.lang.python,
but I don''t seem to see much on it. Does anyone know what the real
status is of getting this into standard Python? Thanks.

推荐答案

Russ写道:
Russ wrote:

我偶然发现PEP 316:Python合同编程

http://www.python.org/dev/peps/pep-0316/)。这对于Python来说是一个很好的补充,但是我看到它在2003年被提交了,

并且它的状态是延迟的。我快速搜索了

comp.lang.python,

但我似乎没有看到太多。有谁知道真正的

状态是什么让它成为标准的Python?谢谢。
I just stumbled onto PEP 316: Programming by Contract for Python
(http://www.python.org/dev/peps/pep-0316/). This would be a great
addition to Python, but I see that it was submitted way back in 2003,
and its status is "deferred." I did a quick search on
comp.lang.python,
but I don''t seem to see much on it. Does anyone know what the real
status is of getting this into standard Python? Thanks.



PEP'与'延期'相关状态通常不会很快进入Python

很快,如果有的话。由于所有Python 3核心更改的截止日期都很长,所以你甚至不会在Python 3中看到它。


Steve

PEP''s with "deferred" status typically aren''t going into Python any time
soon, if ever. Since the due date for all Python 3 core changes is long
past due, you won''t even be seeing it in Python 3.

Steve


8月28日晚上9:35,Steven Bethard< steven.beth ... @ gmail.comwrote:
On Aug 28, 9:35 pm, Steven Bethard <steven.beth...@gmail.comwrote:

Russ写道:
Russ wrote:

我偶然发现了PEP 316:Python合同编程

http://www.python.org/dev/peps/pep-0316/)。这对于Python来说是一个很好的补充,但是我看到它在2003年被提交了,

并且它的状态是延迟的。我快速搜索了

comp.lang.python,

但我似乎没有看到太多。有谁知道真正的

状态是什么让它成为标准的Python?谢谢。
I just stumbled onto PEP 316: Programming by Contract for Python
(http://www.python.org/dev/peps/pep-0316/). This would be a great
addition to Python, but I see that it was submitted way back in 2003,
and its status is "deferred." I did a quick search on
comp.lang.python,
but I don''t seem to see much on it. Does anyone know what the real
status is of getting this into standard Python? Thanks.



PEP'与'延期'相关状态通常不会很快进入Python

很快,如果有的话。由于所有Python 3核心更改的截止日期都很长,所以你甚至不会在Python 3中看到它。


Steve


PEP''s with "deferred" status typically aren''t going into Python any time
soon, if ever. Since the due date for all Python 3 core changes is long
past due, you won''t even be seeing it in Python 3.

Steve



感谢您提供的信息。这太糟糕了,因为它似乎是一个强大的积极能力,可以添加到Python中。我想知道为什么感冒了接待。这个想法本身有问题还是只有

实现?或者它只是一个低优先级?


在任何情况下,我猜它仍然是完全可用的,即使它不是
核心的一部分蟒蛇。有人用过吗?如果是这样,它是多么好b $ b工作?谢谢。

Thanks for that information. That''s too bad, because it seems like a
strong positive capability to add to Python. I wonder why the cold
reception. Were there problems with the idea itself or just the
implementation? Or is it just a low priority?

In any case, I guess it is still perfectly usable even if it isn''t
part of the core Python. Has anyone used it? If so, how well did it
work? Thanks.


8月29日上午7:21,Russ< uymqlp ... @ sneakemail.comwrote:
On Aug 29, 7:21 am, Russ <uymqlp...@sneakemail.comwrote:

>

感谢您提供相关信息。这太糟糕了,因为它似乎是一个强大的积极能力,可以添加到Python中。我想知道为什么感冒了接待。这个想法本身有问题还是只有

实现?或者它只是一个低优先级?
>
Thanks for that information. That''s too bad, because it seems like a
strong positive capability to add to Python. I wonder why the cold
reception. Were there problems with the idea itself or just the
implementation? Or is it just a low priority?



为什么你认为这会带来强大的积极能力?

至少对我来说,这似乎是一大堆过度工程,而不是在99%的计划中需要
。在剩余的1%中,它仍然不会需要
,因为Python提供了非常强大的开箱即用的元数据编程能力,因此你可以实现

你自己需要的支票,如果你真的需要它们。

Why do you think that would ad a strong positive capability?
To me at least it seems a big fat lot of over-engineering, not
needed in 99% of programs. In the remaining 1%, it would still not
be needed since Python provides out of the box very powerful
metaprogramming capabilities so that you can implement
yourself the checks you need, if you really need them.


无论如何,我猜它仍然是完全可用的,即使它不是

核心Python的一部分。有人用过吗?如果是这样,它是多么好b $ b工作?谢谢。
In any case, I guess it is still perfectly usable even if it isn''t
part of the core Python. Has anyone used it? If so, how well did it
work? Thanks.



Dunno,我很想知道是否有这些框架的用户(包括Python中的AOP框架)或者

如果它们只是练习。


Michele Simionato

Dunno, I would be curious myself to know if there are users
of these frameworks (including AOP frameworks in Python) or
if they are just exercises.

Michele Simionato


这篇关于合同编程状况(PEP 316)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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