Happy Christmas Pythoneers

Steven D'Aprano steven at REMOVE.THIS.cybersource.com.au
Wed Dec 26 22:43:33 EST 2007


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):
        kiss(person)
    else:
        shake(person.hand)



-- 
Steven



More information about the Python-list mailing list