The Samurai Principle

Phlip phlip2005 at
Tue Sep 7 05:48:08 CEST 2010


The "Samurai Principle" says to return victorious, or not at all. This
is why django.db wisely throws an exception, instead of simply
returning None, if it encounters a "record not found".

I illustrated the value of that concept, here:

More information about the Python-list mailing list