Clarity vs. code reuse/generality

Nobody nobody at nowhere.com
Thu Jul 9 22:28:04 EDT 2009


On Thu, 09 Jul 2009 04:57:15 -0300, Gabriel Genellina wrote:

> Nobody says you shouldn't check your data. Only that "assert" is not the  
> right way to do that.

"assert" is not the right way to check your *inputs*. It's a perfectly
reasonable way to check data which "should" be valid, as well as a way to
document what variables are supposed to contain.




More information about the Python-list mailing list