Did I find the right examples for you? yes no

All Samples(221)  |  Call(221)  |  Derive(0)  |  Import(0)

src/d/j/django-navbar-0.3.0/examples/dbgp/client.py   django-navbar(Download)
    def __init__(self, origStream, client):
        self.__dict__['_origStream'] = origStream
        StringIO.StringIO.__init__(self, '')
        self.__dict__['_read_cv'] = threading.Condition()
        self.__dict__['_client'] = client

src/a/s/astral-HEAD/examples/webcam_and_rtmp/amf.py   astral(Download)
    def __init__(self, *args, **kwargs): StringIO.__init__(self, *args, **kwargs)
    def eof(self): return self.tell() >= self.len  # return true if next read will cause EOFError
    def remaining(self): return self.len - self.tell() # return number of remaining bytes
 
    def read(self, length=-1):

src/s/l/slarch-0.1/slarch/archive.py   slarch(Download)
 
        if 'r' in self.mode or 'a' in self.mode:
            StringIO.StringIO.__init__(self, self.read_data())
 
            if 'a' in self.mode:
                self.seek(0, os.SEEK_END)
 
        elif 'w' in self.mode:
            StringIO.StringIO.__init__(self)

src/c/u/cubicweb-3.19.0/__init__.py   cubicweb(Download)
    def __init__(self, buf=''):
        assert isinstance(buf, (str, buffer)), \
               "Binary objects must use raw strings, not %s" % buf.__class__
        StringIO.__init__(self, buf)
 

src/c/o/Command-Tools-0.1a2/command_tools/system/open_file.py   Command-Tools(Download)
        self.mode = mode
        buff = dict.get(key, '')
        StringIO.__init__(self, buff)
        if 'a' in mode:
            self.seek(len(buff))

src/k/a/kamaelia-HEAD/Sketches/RJL/bittorrent/BitTorrent/BitTorrent/zurllib.py   kamaelia(Download)
        gz.close()
        # init our stringio selves with the string 
        StringIO.__init__(self, str)
        del str
 

src/o/p/openerp-server-5.0.0-3/bin/addons/document/ftpserver/abstracted_fs.py   openerp-server(Download)
    def __init__(self, sstr='', ressource_id=False, dbname=None, uid=1, name=''):
        StringIO.StringIO.__init__(self, sstr)
        self.ressource_id = ressource_id
        self.name = name
        self.dbname = dbname
    def __init__(self, dbname, uid, pool, node, name=''):
        StringIO.StringIO.__init__(self, '')
        self.dbname = dbname
        self.uid = uid
        self.node = node

src/o/p/openerp-document-7.0.406/document.py   openerp-document(Download)
                self._size = len(data)
                parent.content_length = len(data)
            StringIO.__init__(self, data)
        elif mode in ('w', 'w+'):
            StringIO.__init__(self, None)
            # at write, we start at 0 (= overwrite), but have the original
            # data available, in case of a seek()
        elif mode == 'a':
            StringIO.__init__(self, None)
                self._size = len(data)
                parent.content_length = len(data)
            StringIO.__init__(self, data)
        elif mode in ('w', 'w+'):
            StringIO.__init__(self, None)

src/b/e/benflix-HEAD/videoportal/BitTorrent/BitTorrent/zurllib.py   benflix(Download)
        gz.close()
        # init our stringio selves with the string 
        StringIO.__init__(self, str)
        del str
 

src/d/a/dawn-fable-HEAD/org.dawb.fable.feature/python/fabio/win32-x86_64/fabio/fabioutils.py   dawn-fable(Download)
    def __init__(self, data, fname=None, mode="r"):
        stringIO.StringIO.__init__(self, data)
        self.closed = False
        if fname == None:
            self.name = "fabioStream"

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next