The Samurai Principle

Phlip phlip2005 at gmail.com
Mon Sep 6 23:48:08 EDT 2010


Pythonistas:

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:

http://c2.com/cgi/wiki?SamuraiPrinciple



More information about the Python-list mailing list