News for hackers. Stuff that matters.
Re:Contract based programming (Python) by targeted on Monday July 04, 2011 @09:41PM (#2728385)
In Python 3 a similar thing looks better with the use of "function annotations": http://code.activestate.com/recipes/572161/

There also are a few modules out there that implement design-by-contract's pre-/post-conditions for class instances, for example http://code.activestate.com/recipes/436834/

There are no comments on this comment yet.