[Python-Dev] the role of assert in the standard library ?

Benjamin Peterson benjamin at python.org
Fri Apr 29 01:09:59 CEST 2011


2011/4/28 Raymond Hettinger <raymond.hettinger at gmail.com>:
> It might be nice if there were a pragma or module variable to selectively enable asserts for a given test module so that -O would turn-off asserts in the production code but leave them on in a test_suite.

from __future__ import perfect_code_so_no_asserts

:)



-- 
Regards,
Benjamin


More information about the Python-Dev mailing list