[Edu-sig] Re: Naming in Python
Kirby Urner
urnerk at qwest.net
Wed Feb 2 05:57:12 CET 2005
Hi Scott:
> Here you missed a simplicity bet (one of my two big pet peeves):
>
> class Function:
> def __init__(self, f):
> self.f = f
> ...
>
Yes, good one.
> For the curious, the other peeve is:
>
> def function(...
> if expression:
> return True
> else:
> return False
>
> instead of:
>
> def function(...
> return expression
Also good.
Thanks for sharing your peeves. If you get any more pets, please share them
too.
Kirby
More information about the Edu-sig
mailing list