MRAB <[EMAIL PROTECTED]> writes:

> On Jan 31, 12:57 am, Asun Friere <[EMAIL PROTECTED]> wrote:
> > Ouch!! If on the other hand 'females' is populated by instances of
> > (or merely includes instances of) class 'Human', I suggest you
> > test for female.consent somewhere in your code!
> >
> The Pythonic approach would be to try the action and catch a
> NoConsentException.

You're making the classic Pythonista mistake: you behave as though
EAFP applies everywhere. I assure you, in the above situation, it does
not apply.

-- 
 \     "He may look like an idiot and talk like an idiot but don't let |
  `\              that fool you. He really is an idiot." —Groucho Marx |
_o__)                                                                  |
Ben Finney
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to