filter(lambda W : W not in 'ILLITERATE','BULLSHIT') (Re : python expression)

Steve Holden sholden at holdenweb.com
Wed Sep 25 15:41:37 EDT 2002


"Boris" <borcis at removethis.infomaniak.andthis.ch> wrote ...
>
> Terry Reedy <tjreedy at udel.edu> a écrit ...
> >
> > "Boris"
> > >
> > > filter(lambda W : W not in 'ILLITERATE','BULLSHIT')
> >
> > This somewhat-well-known and certainly well-worn programmer joke
>
> Well, *I* invented this formula myself soon after Mr Bush revealed to
> the world that "USA" is written in "CRUSADE" just like "US" is in
> "BUSH". Adding : "Either you are with US, or you are against US".
>  [...other matters not dealt with here...]

Wouldn't

>>> filter(lambda W : W not in "Illiterate", "Bullshit")
'Bush'

seem a little more, erm, literate?

regards
-----------------------------------------------------------------------
Steve Holden                                  http://www.holdenweb.com/
Python Web Programming                 http://pydish.holdenweb.com/pwp/
Previous .sig file retired to                    www.homeforoldsigs.com
-----------------------------------------------------------------------






More information about the Python-list mailing list