Removing Pubic Hair Methods
sergio.correia at gmail.com
Thu Jan 31 04:38:30 CET 2008
So in this case it is REALLY better to ask for permission rather than
On Jan 30, 2008 10:30 PM, Ben Finney <bignose+hates-spam at benfinney.id.au> wrote:
> 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