Clarity vs. code reuse/generality

Alan G Isaac alan.isaac at gmail.com
Fri Jul 3 13:50:23 EDT 2009


> In <mGo3m.591$P5.76 at nwrddc02.gnilink.net> Alan G Isaac <alan.isaac at gmail.com> writes:
>> 1. Don't use assertions to test argument values!


On 7/3/2009 12:19 PM kj apparently wrote:
> Out of curiosity, where does this come from? 


http://docs.python.org/reference/simple_stmts.html#grammar-token-assert_stmt
"The current code generator emits no code for an assert statement when optimization is requested at compile time."

Alan Isaac



More information about the Python-list mailing list