Module mailbox :: Class _PartialFile
[hide private]
[frames] | no frames]

_ClassType _PartialFile

_ProxyFile --+
             |
            _PartialFile

A read-only wrapper of part of a file.

Instance Methods [hide private]
 
__init__(self, f, start=None, stop=None)
Initialize a _PartialFile.
 
tell(self)
Return the position with respect to start.
 
seek(self, offset, whence=0)
Change position, possibly with respect to start or stop.
 
_read(self, size, read_method)
Read size bytes using read_method, honoring start and stop.

Inherited from _ProxyFile: __iter__, close, read, readline, readlines

Method Details [hide private]

__init__(self, f, start=None, stop=None)
(Constructor)

 

Initialize a _PartialFile.

Overrides: _ProxyFile.__init__

tell(self)

 

Return the position with respect to start.

Overrides: _ProxyFile.tell

seek(self, offset, whence=0)

 

Change position, possibly with respect to start or stop.

Overrides: _ProxyFile.seek

_read(self, size, read_method)

 

Read size bytes using read_method, honoring start and stop.

Overrides: _ProxyFile._read