|
OpenQuizz
Une application de gestion des contenus pédagogiques
|


Public Member Functions | |
| def | __init__ (self, tarfile, tarinfo) |
| def | readable (self) |
| def | writable (self) |
| def | seekable (self) |
| def | read (self, size=None) |
| def | readline (self, size=-1) |
| def | readlines (self) |
| def | tell (self) |
| def | seek (self, pos, whence=os.SEEK_SET) |
| def | close (self) |
| def | __iter__ (self) |
Data Fields | |
| fileobj | |
| name | |
| mode | |
| closed | |
| size | |
| position | |
| buffer | |
Static Public Attributes | |
| blocksize | |
| read1 | |
File-like object for reading an archive member. Is returned by TarFile.extractfile().
| def __init__ | ( | self, | |
| tarfile, | |||
| tarinfo | |||
| ) |
| def __iter__ | ( | self | ) |
Get an iterator over the file's lines.
| def close | ( | self | ) |
Close the file object.
| def read | ( | self, | |
size = None |
|||
| ) |
Read at most size bytes from the file. If size is not present or None, read all data until EOF is reached.
| def readable | ( | self | ) |
| def readline | ( | self, | |
size = -1 |
|||
| ) |
Read one entire line from the file. If size is present and non-negative, return a string with at most that size, which may be an incomplete line.
| def readlines | ( | self | ) |
Return a list with all remaining lines.
| def seek | ( | self, | |
| pos, | |||
whence = os.SEEK_SET |
|||
| ) |
Seek to a position in the file.
| def seekable | ( | self | ) |
| def tell | ( | self | ) |
Return the current file position.
| def writable | ( | self | ) |
|
static |
| buffer |
| closed |
| fileobj |
| mode |
| name |
| position |
|
static |
| size |