[issue32590] Proposal: add an "ensure(arg)" builtin for parameter validation
Steven D'Aprano
report at bugs.python.org
Thu Jan 18 05:41:10 EST 2018
Steven D'Aprano <steve+python at pearwood.info> added the comment:
Since this is intended for argument checking, i.e. testing preconditions, the Eiffel term "require" seems more appropriate.
https://www.eiffel.org/doc/eiffel/ET:%20Design%20by%20Contract%20(tm),%20Assertions%20and%20Exceptions#Preconditions
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32590>
_______________________________________
More information about the Python-bugs-list
mailing list