> 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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to