Initialize a _PartialFile.
(self, f, start=None, stop=None)
| 2102 | """A read-only wrapper of part of a file.""" |
| 2103 | |
| 2104 | def __init__(self, f, start=None, stop=None): |
| 2105 | """Initialize a _PartialFile.""" |
| 2106 | _ProxyFile.__init__(self, f, start) |
| 2107 | self._start = start |
| 2108 | self._stop = stop |
| 2109 | |
| 2110 | def tell(self): |
| 2111 | """Return the position with respect to start.""" |