The Samurai Principle

Phlip phlip2005 at gmail.com
Tue Sep 7 05:48:08 CEST 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