Did I find the right examples for you? yes no

All Samples(148)  |  Call(148)  |  Derive(0)  |  Import(0)
Flush the internal buffer
        

src/b/i/bitey-0.0/examples/mandel/png.py   bitey(Download)
        s.write('P5 2 2 3\n')
        s.write('\x00\x01\x02\x03')
        s.flush()
        s.seek(0)
        o = StringIO()
        flat =  [255,0,0,255, 0,255,0,120, 0,0,255,30]
        s.write(''.join(map(chr, flat)))
        s.flush()
        s.seek(0)
        o = StringIO()
        for pixel in range(8):
            s.write(struct.pack('<I', (0x4081*pixel)&0x10101)[:3])
        s.flush()
        s.seek(0)
        o = StringIO()

src/b/i/bitey-HEAD/examples/mandel/png.py   bitey(Download)
        s.write('P5 2 2 3\n')
        s.write('\x00\x01\x02\x03')
        s.flush()
        s.seek(0)
        o = StringIO()
        flat =  [255,0,0,255, 0,255,0,120, 0,0,255,30]
        s.write(''.join(map(chr, flat)))
        s.flush()
        s.seek(0)
        o = StringIO()
        for pixel in range(8):
            s.write(struct.pack('<I', (0x4081*pixel)&0x10101)[:3])
        s.flush()
        s.seek(0)
        o = StringIO()

src/c/i/circuits-3.0.0.dev/examples/web/terminal/terminal.py   circuits(Download)
            if self._buffer is not None:
                self._buffer.write(data)
                self._buffer.flush()
                data = self._buffer.getvalue()
                self._buffer = None

src/d/j/django-chroniker-0.5.0/chroniker/utils.py   django-chroniker(Download)
    def flush(self):
        self.file.flush()
        #super(TeeFile, self).flush()
        StringIO.flush(self)
        if self.queue is not None:

src/d/j/django-chroniker-HEAD/chroniker/utils.py   django-chroniker(Download)
    def flush(self):
        self.file.flush()
        #super(TeeFile, self).flush()
        StringIO.flush(self)
        if self.queue is not None:

src/m/o/MOL-HEAD/app/mol/service/png.py   MOL(Download)
        s.write('P5 2 2 3\n')
        s.write('\x00\x01\x02\x03')
        s.flush()
        s.seek(0)
        o = StringIO()
        flat =  [255,0,0,255, 0,255,0,120, 0,0,255,30]
        s.write(''.join(map(chr, flat)))
        s.flush()
        s.seek(0)
        o = StringIO()
        for pixel in range(8):
            s.write(struct.pack('<I', (0x4081*pixel)&0x10101)[:3])
        s.flush()
        s.seek(0)
        o = StringIO()

src/m/o/MOL-HEAD/app/oldpng/png.py   MOL(Download)
        s.write('P5 2 2 3\n')
        s.write('\x00\x01\x02\x03')
        s.flush()
        s.seek(0)
        o = StringIO()
        flat =  [255,0,0,255, 0,255,0,120, 0,0,255,30]
        s.write(''.join(map(chr, flat)))
        s.flush()
        s.seek(0)
        o = StringIO()
        for pixel in range(8):
            s.write(struct.pack('<I', (0x4081*pixel)&0x10101)[:3])
        s.flush()
        s.seek(0)
        o = StringIO()

src/m/o/MOL-HEAD/tileapp/png.py   MOL(Download)
        s.write('P5 2 2 3\n')
        s.write('\x00\x01\x02\x03')
        s.flush()
        s.seek(0)
        o = StringIO()
        flat =  [255,0,0,255, 0,255,0,120, 0,0,255,30]
        s.write(''.join(map(chr, flat)))
        s.flush()
        s.seek(0)
        o = StringIO()
        for pixel in range(8):
            s.write(struct.pack('<I', (0x4081*pixel)&0x10101)[:3])
        s.flush()
        s.seek(0)
        o = StringIO()

src/m/o/MOL-HEAD/app/png.py   MOL(Download)
        s.write('P5 2 2 3\n')
        s.write('\x00\x01\x02\x03')
        s.flush()
        s.seek(0)
        o = StringIO()
        flat = [255, 0, 0, 255, 0, 255, 0, 120, 0, 0, 255, 30]
        s.write(''.join(map(chr, flat)))
        s.flush()
        s.seek(0)
        o = StringIO()
        for pixel in range(8):
            s.write(struct.pack('<I', (0x4081 * pixel) & 0x10101)[:3])
        s.flush()
        s.seek(0)
        o = StringIO()

src/m/o/MOL-HEAD/lib/png.py   MOL(Download)
        s.write(strtobytes('P5 2 2 3\n'))
        s.write(strtobytes('\x00\x01\x02\x03'))
        s.flush()
        s.seek(0)
        o = BytesIO()
        asbytes = seqtobytes(flat)
        s.write(asbytes)
        s.flush()
        s.seek(0)
        o = BytesIO()
        for pixel in range(8):
            s.write(struct.pack('<I', (0x4081*pixel)&0x10101)[:3])
        s.flush()
        s.seek(0)
        o = BytesIO()

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