On 4/11/06, Glenn Tenney <[EMAIL PROTECTED]> wrote: > > On Tue, Apr 11, 2006 at 02:24:04PM -0400, Max Battcher wrote: > > You are free to raise your own exception in the path that fails to > > call super().delete() in M-R. > > Then perhaps the docs etc. should instead show "raise <something>" > instead of "pass"... When one shows as an example to use "pass", > it misleads some to think that one shouldn't raise an exception.
"pass" is the Python "do nothing" command, which is often used as an indicator to "fill in the blanks" with your own specific code (because Python doesn't allow empty functions it is often seen in psuedo-code). I don't think it implies that you shouldn't raise an exception, after all raising an exception is valid Python code. -- --Max Battcher-- http://www.worldmaker.net/ All progress is based upon a universal innate desire on the part of every organism to live beyond its income. --Samuel Butler --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---