status of Programming by Contract (PEP 316)?

Michele Simionato michele.simionato at gmail.com
Wed Aug 29 22:39:14 EDT 2007


On Aug 30, 1:17 am, Dan Stromberg - Datallegro
<dstromb... at datallegro.com> wrote:
> IMO, putting Programming by Contract into python as part of the language
> itself, or as a simple module, is a little bit like a company or
> department coming up with a mission statement.  It's easy to say that it's
> meaningless, and some will ignore it, but it still kind of sets the tone
> for how things "should be done".

I disagree. IMO automatic testing is thousands of times better than
design by contract and Python has already all the support you need
(unittest, doctest, py.test, nose, ...)


                     Michele Simionato




More information about the Python-list mailing list