Removing Pubic Hair Methods

MRAB google at mrabarnett.plus.com
Wed Jan 30 21:24:37 EST 2008


On Jan 31, 12:57 am, Asun Friere <afri... at yahoo.co.uk> wrote:
> On Jan 31, 3:13 am, Steve Holden <st... at holdenweb.com> wrote:
>
> > Wildemar Wildenburger wrote:
> > > Well, you never go wrong with apply(genital(), females), do you?
>
> Never?!
>
> class PowerSocket () :
>   def __init__ (self, plug=female, active=False) :
>     self.plug = plug
>     self.active = active
>
> females = [p for p in powersockets if p.active and p.plug == 'female']
>
> 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.



More information about the Python-list mailing list