Proposal: runtime validation statement

Ville Vainio ville at
Mon Jul 12 22:11:33 CEST 2004

>>>>> "Dave" == Dave Brueck <dave at> writes:

    Dave> distinction. That's why 'assert' as a statement makes sense
    Dave> to me too - it and validate are sort of "out of band" with
    Dave> getting the actual work done, but useful nonetheless.

Perhaps calling it _validate could imply out-of-bandness? I don't like
the idea of making the "less important" constructs statements, only
the most fundamental things should be statements. 

And we already have assert.

    Dave> It's definitely not "obvious library stuff" IMO - if nothing
    Dave> else, making you import a library just to validate
    Dave> parameters is goofy. It would be semi-tolerable (though less
    Dave> than ideal) as a builtin.
+1 on making it a builtin.

Ville Vainio

More information about the Python-list mailing list