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


Public Member Functions | |
| def | __init__ (self, name, mode, comptype, fileobj, bufsize) |
| def | __del__ (self) |
| def | write (self, s) |
| def | close (self) |
| def | tell (self) |
| def | seek (self, pos=0) |
| def | read (self, size=None) |
Data Fields | |
| name | |
| mode | |
| comptype | |
| fileobj | |
| bufsize | |
| buf | |
| pos | |
| closed | |
| zlib | |
| crc | |
| dbuf | |
| cmp | |
Class that serves as an adapter between TarFile and a stream-like object. The stream-like object only needs to have a read() or write() method and is accessed blockwise. Use of gzip or bzip2 compression is possible. A stream-like object could be for example: sys.stdin, sys.stdout, a socket, a tape device etc. _Stream is intended to be used only internally.
| def __init__ | ( | self, | |
| name, | |||
| mode, | |||
| comptype, | |||
| fileobj, | |||
| bufsize | |||
| ) |
Construct a _Stream object.
| def __del__ | ( | self | ) |
| def close | ( | self | ) |
Close the _Stream object. No operation should be done on it afterwards.
| def read | ( | self, | |
size = None |
|||
| ) |
Return the next size number of bytes from the stream. If size is not defined, return all bytes of the stream up to EOF.
| def seek | ( | self, | |
pos = 0 |
|||
| ) |
Set the stream's file pointer to pos. Negative seeking is forbidden.
| def tell | ( | self | ) |
Return the stream's file pointer position.
| def write | ( | self, | |
| s | |||
| ) |
Write string s to the stream.
| buf |
| bufsize |
| closed |
| cmp |
| comptype |
| crc |
| dbuf |
| fileobj |
| mode |
| name |
| pos |
| zlib |