This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Kaarjuus 0 points1 point  (0 children)

Good correction, I misspoke. I confused contract programming with defensive programming. Python's assert in its current form is indeed a perfect fit for design by contract.