'If ``cc`` is given and is a file-like object or an iterable of same,
it/they will be written to whenever this StringIO instance is written
to.'

def __init__(self, buffer='', cc=None):

    StringIO.__init__(self, buffer)
    if (cc is None):
        cc = []
    elif hasattr(cc, 'write'):
        cc = [cc]
    self.cc = cc
