Replies: 2 comments
-
Some print statements are necessary for error handling. Some print statements can certainly be improved with a verbose parameter, but it is too tedious and overwhelming to add a verbose parameter to every function with a print statement. It will also require updating the documentation of every function. I will look into this when I have time. As a workaround, you can always use an Output widget to capture the print statements. Nothing will be shown to the user unless you display the Output widget.
|
Beta Was this translation helpful? Give feedback.
-
I already use it as a workaround and already proposed a modification for a function I was using on daily basis in a PR (#197). I will be happy to contribute again for other functions and modify the documentation accordingly. |
Beta Was this translation helpful? Give feedback.
-
In the code there are a lot of print statement that should or should'nt be displayed to the end user based on a
verbose
parameter.it implies a lot of
if
statement that pollute the readability of your code.wouldn't it be more functionnal to have somewhere a
get_print
method that return a print function based on theverbose
parameter :Then if I call
do_something
withverbose=False
, nothing will be displayedBeta Was this translation helpful? Give feedback.
All reactions