conditional print statement ?

stef s.mientki at id.umcn.nl
Fri Apr 27 09:56:56 EDT 2007


> or (untested):
>
> if Print_Info:
>     def printOrNot(arg):
>         print arg
> else:
>     def printOrNot(arg):
>         pass
>
> printOrNot(Datafile.readline())
>
>   
thanks for the creative solution, and indeed it does work ;-)

cheers,
Stef Mientki



More information about the Python-list mailing list