[Tutor] Is defining functions as dummies pythonic?
Scot W. Stevenson
scot at possum.in-berlin.de
Thu Apr 15 22:10:43 EDT 2004
> I would simply write:
> def verbosize (string):
> if isverbose:
> print string
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...
Scot W. Stevenson - Panketal, Germany
More information about the Tutor