You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working with the pyline.pyline.main() function, it's often not necessary to print the results (e.g. when they're appended to to results and the utilized in a downstream function);
there should be a way to not write to stdout or stderr (or a stringio.StringIO (Python 2), io.StringIO).
solution:
With NotImplemented as a default value
def pyline(output=NotImplemented)
if not output:
don't write sys.stdout
elif output is NotImplemented:
write to sys.stdout (by default)
workaround:
output=sys.stderr
output=io.StringIO
The text was updated successfully, but these errors were encountered:
When working with the
pyline.pyline.main()
function, it's often not necessary to print the results (e.g. when they're appended to toresults
and the utilized in a downstream function);there should be a way to not write to stdout or stderr (or a stringio.StringIO (Python 2), io.StringIO).
solution:
With
NotImplemented
as a default valuedef pyline(output=NotImplemented)
if not output:
elif output is NotImplemented:
workaround:
output=sys.stderr
output=io.StringIO
The text was updated successfully, but these errors were encountered: