Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
tarfile._LowLevelFile Class Reference

List of all members.

Public Member Functions

def __init__
def close
def read
def write

Public Attributes


Detailed Description

Low-level file object. Supports reading and writing.
   It is used instead of a regular file object for streaming

Definition at line 355 of file

Constructor & Destructor Documentation

def tarfile._LowLevelFile.__init__ (   self,

Definition at line 361 of file

00362     def __init__(self, name, mode):
00363         mode = {
00364             "r": os.O_RDONLY,
00365             "w": os.O_WRONLY | os.O_CREAT | os.O_TRUNC,
00366         }[mode]
00367         if hasattr(os, "O_BINARY"):
00368             mode |= os.O_BINARY
00369         self.fd =, mode, 0o666)

Here is the caller graph for this function:

Member Function Documentation

Definition at line 370 of file

00371     def close(self):
00372         os.close(self.fd)

Here is the caller graph for this function:

def (   self,

Definition at line 373 of file

00374     def read(self, size):
00375         return, size)

Here is the caller graph for this function:

def tarfile._LowLevelFile.write (   self,

Definition at line 376 of file

00377     def write(self, s):
00378         os.write(self.fd, s)

Member Data Documentation

Definition at line 368 of file

The documentation for this class was generated from the following file: