You can also just type buf.getvalue() which returns the current StringIO buffer as a python string, without the rewinding
-- http://mail.python.org/mailman/listinfo/python-list
You can also just type buf.getvalue() which returns the current StringIO buffer as a python string, without the rewinding
-- http://mail.python.org/mailman/listinfo/python-list