Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes 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 306 of file

Constructor & Destructor Documentation

def (   self,

Definition at line 312 of file

00313     def __init__(self, name, mode):
00314         mode = {
00315             "r": os.O_RDONLY,
00316             "w": os.O_WRONLY | os.O_CREAT | os.O_TRUNC,
00317         }[mode]
00318         if hasattr(os, "O_BINARY"):
00319             mode |= os.O_BINARY
00320         self.fd =, mode)

Member Function Documentation

Definition at line 321 of file

00322     def close(self):
00323         os.close(self.fd)

Here is the caller graph for this function:

def (   self,

Definition at line 324 of file

00325     def read(self, size):
00326         return, size)

Here is the caller graph for this function:

Definition at line 327 of file

00328     def write(self, s):
00329         os.write(self.fd, s)

Here is the caller graph for this function:

Member Data Documentation

Definition at line 319 of file

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