Removing Pubic Hair Methods
Ben Finney
bignose+hates-spam at benfinney.id.au
Wed Jan 30 22:30:49 EST 2008
MRAB <google at mrabarnett.plus.com> writes:
> On Jan 31, 12:57 am, Asun Friere <afri... at yahoo.co.uk> 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
More information about the Python-list
mailing list