Did I find the right examples for you? yes no

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)
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/a/r/argh-0.24.1/argh/dispatching.py   argh(Download)
            f = compat.BytesIO()
        else:
            f = compat.StringIO()
    else:
        # normally this is stdout; can be any file

src/a/r/argh-HEAD/argh/dispatching.py   argh(Download)
            f = compat.BytesIO()
        else:
            f = compat.StringIO()
    else:
        # normally this is stdout; can be any file

src/a/r/argh-HEAD/test/base.py   argh(Download)
 
from argh import ArghParser
from argh.compat import BytesIO, StringIO
 
 
        return BytesIO()
    else:
        return StringIO()
 
 

src/a/r/argh-0.24.1/test/base.py   argh(Download)
 
from argh import ArghParser
from argh.compat import BytesIO, StringIO
 
 
        return BytesIO()
    else:
        return StringIO()