Revision history [back]
@bbrannon4, you could do it in a few line by retrieving the standard output. This would involve no text manipulation per se and no loops but it is not a full "eppy" solution.
stdout = sys.stdout
sys.stdout = six.StringIO()
idf1.printidf()
idf2.printidf()
idf_all = sys.stdout.getvalue()
sys.stdout = stdout
@bbrannon4, you could do it in a few line by retrieving the standard output. This would involve no text manipulation per se and no loops but it is not a full "eppy" solution.
stdout = sys.stdout
sys.stdout = six.StringIO()
idf1.printidf()
idf2.printidf()
idf_all idfall = sys.stdout.getvalue()
sys.stdout = stdout
@bbrannon4, you You could do it in a few line by retrieving the standard output. This would involve no text manipulation per se and no loops but it is not a full "eppy" solution.loops:
stdout = sys.stdout
sys.stdout = six.StringIO()
idf1.printidf()
idf2.printidf()
idfall = sys.stdout.getvalue()
sys.stdout = stdout