StringIO and cStringIO – Work with text buffers using file-like API ...

StringIO and cStringIO – Work with text buffers using file-like API ...