A read-only wrapper of a file.
|
__init__(self,
f,
pos=None)
Initialize a _ProxyFile. |
|
|
|
read(self,
size=None)
Read bytes. |
|
|
|
readline(self,
size=None)
Read a line. |
|
|
|
readlines(self,
sizehint=None)
Read multiple lines. |
|
|
|
__iter__(self)
Iterate over lines. |
|
|
|
tell(self)
Return the position. |
|
|
|
seek(self,
offset,
whence=0)
Change position. |
|
|
|
close(self)
Close the file. |
|
|
|
_read(self,
size,
read_method)
Read size bytes using read_method. |
|
|