easy verbose in functions
pascal.parent at free.fr
Mon Mar 29 11:50:03 CEST 2004
I've a function like this:
def myfunction(data, verbose = False):
if verbose: print 'I do this'
if verbose: print 'I do this other'
How can I do to exclude eachtime the `if verbose` statement?
I tried `print verbose and 'I do this'` but it's printing `False`.
So I tried with `verbose = None` in the definition, but it's printing None!
More information about the Python-list