[Python-ideas] Repurpose `assert' into a general-purpose check
steve at pearwood.info
Tue Nov 28 06:30:26 EST 2017
On Tue, Nov 28, 2017 at 05:54:12PM +0900, Stephen J. Turnbull wrote:
> I understand the point made elsewhere about scientists' thinking about
> "assert", but as a scientist myself, I disagree. It is very useful to
> me to distinguish between validating data and validating algorithms.
> "assert" is how we do the latter.
I'm not sure which point about scientists you are referring to -- I
don't seem to have that email. Is that in this thread?
More information about the Python-ideas