[Tutor] Is defining functions as dummies pythonic?
Scot W. Stevenson
scot at possum.in-berlin.de
Thu Apr 15 22:10:43 EDT 2004
Hello Karl,
> I would simply write:
>
> def verbosize (string):
> if isverbose:
> print string
> else:
> pass
But doesn't that mean that every time this function is called, the program
has to do the test all over again, even though I already have the
information from the start? This sound hideously inefficient...
Dankeschön,
Y, Scot
--
Scot W. Stevenson - Panketal, Germany
More information about the Tutor
mailing list