On Jan 31, 3:13 am, Steve Holden <[EMAIL PROTECTED]> 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!

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to