what's wrong with "lambda x : print x/60,x%60"
sybrenUSE at YOURthirdtower.com.imagination
Thu Dec 8 01:07:14 CET 2005
Steven D'Aprano enlightened us with:
> Once the lookup table is created, you shouldn't use that function
> again -- at best it is just sitting around like a third wheel, at
> worst it might have side-effects you don't want. So I del the
I'd prefer to check the lookup table, and raise a descriptive
exception if it already exists. That'll be a lot clearer than the
error that a function doesn't extst, while it is clearly defined in
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
More information about the Python-list