The Samurai Principle

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Wed Sep 8 03:23:22 CEST 2010


In message
<74587da9-8861-4400-bbd7-1ea4f8182bb1 at l38g2000pro.googlegroups.com>, Phlip 
wrote:

> 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".

Does catching the exception not defeat the “Samurai Principle”?



More information about the Python-list mailing list