Removing Pubic Hair Methods

George Sakkis george.sakkis at gmail.com
Thu Jan 31 02:42:17 EST 2008


On Jan 30, 9:27 pm, MRAB <goo... at mrabarnett.plus.com> wrote:
> On Jan 31, 1:09 am, George Sakkis <george.sak... at gmail.com> wrote:> On Jan 30, 5:03 pm, Marc 'BlackJack' Rintsch <bj_... at gmx.net> wrote:
>
> > > On Wed, 30 Jan 2008 15:29:45 +0100, Wildemar Wildenburger wrote:
> > > > Gerardo Herzig wrote:
> > > >> I will use genital().extend(), thats for shure ^^
>
> > > > Well, you never go wrong with apply(genital(), females), do you?
>
> > > `apply()` is deprecated.  And ``genital(*females)`` looks a bit odd.  :-)
>
> > Well, that use case alone is enough to convince anyone that apply
> > should stay :-)
>
> The original had genital(), so that would be genital()(*females). But
> what is genital() anyway? A factory?

It actually implements several design patterns. Factory is just one of
them; others include the Bridge and the Object Pool patterns. Some
advanced instances of genital() may also implement the Visitor pattern
while others less advanced implement primarily the Observer.

George



More information about the Python-list mailing list