Pre/Postconditions with decorators

rittersporn at rittersporn at
Sat Jan 8 08:13:51 EST 2005

Thank you very much. It is really a very elegant piece of code :-)

Eiffel (language) has both type checking and design by contract.
Python lacks both.
Your module tackles type checking, I
tried to execute arbitrary code before
and after function execution to realize
runtime assertions.

I wonder if this should be separated in a Python
Both are part of the interface "contract".


More information about the Python-list mailing list