Is there a Python equivalent / pseudo-equivalent to java\'s OutputStream or PrintWriter?
I want to be able to have a handle that represents either a stream like stdo
Take a look at the io and StringIO modules.