Dag Sverre Seljebotn, 13.04.2010 09:11: > The argument against changing the default is simply that there is > another option which is much closer to Python semantics
I think the "another option" bit in this sentence is at the core of our disagreement. My point is that incorrect input should be caught early, and None is incorrect (and dangerous) input in almost all cases where a typed value is expected. So rejecting this dangerous input should be the default. Your position is that the error should be caught automatically but at a later point where it is required to occur in order to prevent a crash. I'm perfectly fine with catching this error automatically, but I think this is an orthogonal feature that has nothing to do with input value checking and coercion. My point is that for typed arguments, we generate errors in all cases but this one, and this particular inconsistency is a very dangerous one that leads to very common bugs that are rarely caught by test suites. Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
