[Python-ideas] Repurpose `assert' into a general-purpose check

Ethan Furman ethan at stoneleaf.us
Tue Nov 28 09:32:24 EST 2017

On 11/28/2017 03:30 AM, Steven D'Aprano wrote:
> 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?

Privately forwarded.  (Yes, it is in this thread.)


More information about the Python-ideas mailing list