Module socket :: Class _fileobject
[hide private]
[frames] | no frames]

type _fileobject

object --+
         |
        _fileobject

Faux file object attached to a socket object.

Instance Methods [hide private]
 
__init__(self, sock, mode='rb', bufsize=-1)
 
_getclosed(self)
 
close(self)
 
__del__(self)
 
flush(self)
 
fileno(self)
 
write(self, data)
 
writelines(self, list)
 
_get_wbuf_len(self)
 
read(self, size=-1)
 
readline(self, size=-1)
 
readlines(self, sizehint=0)
 
__iter__(self)
 
next(self)
Class Variables [hide private]
  default_bufsize = 8192
  name = '<socket>'
Properties [hide private]
  closed
True if the file is closed
  _rbuf
  _rbufsize
  _sock
  _wbuf
  _wbufsize
  bufsize
  mode
  softspace
Method Details [hide private]

__init__(self, sock, mode='rb', bufsize=-1)
(Constructor)

 
Overrides: object.__init__
(inherited documentation)

Property Details [hide private]

closed

True if the file is closed

Get Method:
_getclosed(self)