Did I find the right examples for you? yes no

All Samples(2928)  |  Call(2928)  |  Derive(0)  |  Import(0)
Set the file's current position.

The mode argument is optional and defaults to 0 (absolute file
positioning); other values are 1 (seek relative to the current
position) and 2 (seek relative to the file's end).

There is no return value.

src/d/j/django-navbar-0.3.0/examples/dbgp/client.py   django-navbar(Download)
        try:
            # always write to the end
            StringIO.StringIO.seek(self, 0, 2)
            StringIO.StringIO.write(self, s)
            self._read_cv.notify()
            if self.closed:
                return None
            StringIO.StringIO.seek(self, 0)
            x = StringIO.StringIO.read(self, size)
            # remove what we read from the stream
            if self.closed:
                return None
            StringIO.StringIO.seek(self, 0)
            x = StringIO.StringIO.readline(self, size)
            # remove what we read from the stream

src/a/s/astral-HEAD/examples/webcam_and_rtmp/amf.py   astral(Download)
    def peek(self):
        if self.eof(): return None
        else:
            c = self.read(1)
            self.seek(self.tell()-1)

src/b/i/bitey-0.0/examples/mandel/png.py   bitey(Download)
        s.write('\x00\x01\x02\x03')
        s.flush()
        s.seek(0)
        o = StringIO()
        testWithIO(s, o, do)
        s.write(''.join(map(chr, flat)))
        s.flush()
        s.seek(0)
        o = StringIO()
        testWithIO(s, o, do)
            s.write(struct.pack('<I', (0x4081*pixel)&0x10101)[:3])
        s.flush()
        s.seek(0)
        o = StringIO()
        testWithIO(s, o, do)

src/b/i/bitey-HEAD/examples/mandel/png.py   bitey(Download)
        s.write('\x00\x01\x02\x03')
        s.flush()
        s.seek(0)
        o = StringIO()
        testWithIO(s, o, do)
        s.write(''.join(map(chr, flat)))
        s.flush()
        s.seek(0)
        o = StringIO()
        testWithIO(s, o, do)
            s.write(struct.pack('<I', (0x4081*pixel)&0x10101)[:3])
        s.flush()
        s.seek(0)
        o = StringIO()
        testWithIO(s, o, do)

src/s/t/statsmodels-0.5.0/statsmodels/examples/ex_shrink_pickle.py   statsmodels(Download)
    pickle.dump(obj, fh)
    plen = fh.pos
    fh.seek(0,0)
    res = pickle.load(fh)
    fh.close()

src/l/a/lalita-0.1.1/lalita/plugins/example.py   lalita(Download)
import this
sys.stdout = ant
s.seek(0)
s.readline()
s.readline()

src/p/y/python-saml-HEAD/example.py   python-saml(Download)
        f.write("<html>\n<body>\n%s</body>\n</html>\n" % msg)
        length = f.tell()
        f.seek(0)
 
        if code == 200:

src/o/t/ottwatch-HEAD/lib/gdata/samples/apps/marketplace_sample/atom/mock_http_core.py   ottwatch(Download)
      elif hasattr(part, 'read'):
        body.write(part.read())
    body.seek(0)
    return response
 

src/g/d/gdata-2.0.18/samples/apps/marketplace_sample/atom/mock_http_core.py   gdata(Download)
      elif hasattr(part, 'read'):
        body.write(part.read())
    body.seek(0)
    return response
 

src/h/u/hunch-sample-app-HEAD/django/core/management/base.py   hunch-sample-app(Download)
        num_errors = get_validation_errors(s, app)
        if num_errors:
            s.seek(0)
            error_text = s.read()
            raise CommandError("One or more models did not validate:\n%s" % error_text)

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