Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)
class StringIO([buffer])

When a StringIO object is created, it can be initialized to an existing
string by passing the string to the constructor. If no string is given,
the StringIO will start empty.

The StringIO object can accept either Unicode or 8-bit strings, but
mixing the two may take some care. If both are used, 8-bit strings that
cannot be interpreted as 7-bit ASCII (that use the 8th bit) will cause
a UnicodeError to be raised when getvalue() is called.

src/s/h/shove-0.5.6/shove/stores/ftp.py   shove(Download)
from shove.store import BaseStore
from shove._compat import StringIO, urlsplit
__all__ = ['FTPStore']
    def __getitem__(self, key):
            local = StringIO()
            # Download item
            self._store.retrbinary('RETR %s' % key, local.write)
    def __setitem__(self, key, value):
        local = StringIO(self.dumps(value))
        self._store.storbinary('STOR %s' % key, local)
        self._updated = True