def __init__(self, filename, mode='rb', bufsize=1 << 14): assert (type(filename) == str and mode.startswith('r') and (0 < len(mode) < 3) and buffer > 0) self.sync_buffer = bufsize self.async_buffers = collections.deque([]) thread_loop.synchronize(self) self.synchronized((sync_open, (self, filename, mode, bufsize)))
def __init__ (self, filename, mode='wb', bufsize=-1): assert ( type (filename) == str and not mode.startswith ('r') and (0 < len (mode) < 3) ) thread_loop.synchronize (self) self.synchronized (( sync_open, (self, filename, mode, bufsize) ))
def __init__ (self, filename, mode='rb', bufsize=1<<14): assert ( type (filename) == str and mode.startswith ('r') and (0 < len (mode) < 3) and buffer > 0 ) self.sync_buffer = bufsize self.async_buffers = collections.deque([]) thread_loop.synchronize (self) self.synchronized (( sync_open, (self, filename, mode, bufsize) ))
def __init__ (self): thread_loop.synchronize (self)
def __init__ (self): self.async_buffers = collections.deque([]) thread_loop.synchronize (self)
def __init__(self): thread_loop.synchronize(self)
def __init__(self): self.async_buffers = collections.deque([]) thread_loop.synchronize(self)
def __init__(self, filename, mode='wb', bufsize=-1): assert (type(filename) == str and not mode.startswith('r') and (0 < len(mode) < 3)) thread_loop.synchronize(self) self.synchronized((sync_open, (self, filename, mode, bufsize)))