Happy Christmas Pythoneers

mensanator at aol.com mensanator at aol.com
Thu Dec 27 00:32:54 EST 2007


On Dec 26, 9:43 pm, Steven D'Aprano
<ste... at REMOVE.THIS.cybersource.com.au> wrote:
> On Wed, 26 Dec 2007 18:04:31 -0800, Zentrader wrote:
> >> Bah, humbug
>
> > And if you're not a Christian it would be Type Error bug.
>
> Not at all: if you inherit from any of the many pagan (that is, non-
> Christian) religions that celebrated midwinter festivals, or the old
> Roman Saturnalia festival that Christianity itself inherited Christmas
> from, you shouldn't raise an exception.
>
> Alternatively, you can delegate to any object that understands about
> holidays, parties, celebrations and gift-giving.
>
> > Anyway, happy New Years as well to all in the group.
>
> watch_fireworks()
> try:
>     champagne
> except NameError:
>     champagne = any_fizzy_alcoholic_drink_will_do()
> champagne.drink()
> shout("Happy New Years!!!")
> for person in adults_nearby:
>     if (person.is_appropriate_sex and person.is_pretty):

Hey, my version of the person module doesn't have
an is_appropriate_sex attribute, but an
is_opposite_sex attribute instead. Is this a new version?

>         kiss(person)
>     else:
>         shake(person.hand)
>
> --
> Steven




More information about the Python-list mailing list