Clarity vs. code reuse/generality

Pablo Torres N. tn.pablo at
Sun Jul 5 06:26:39 CEST 2009

On Sat, Jul 4, 2009 at 18:01, Dennis Lee Bieber<wlfraed at> wrote:
>        Do you really want to inflict novices with the subtleties of when
> "assert" is a proper structure to use?

I'll second that.  This very thread is proof that assertions are polemic, so
maybe you (kj) should just save your student's sanity and stick to good old
conditionals :-)

As for your initial question, I think, thirty four emails after, that yes, your
function is a bit too clever and you should sacrifice some generality in order
to make it more readable.

Pablo Torres N.

More information about the Python-list mailing list