Back to index

python3.2  3.2.2
Public Member Functions | Private Attributes
os._wrap_close Class Reference

List of all members.

Public Member Functions

def __init__
def close
def __enter__
def __exit__
def __getattr__
def __iter__

Private Attributes

 _stream
 _proc

Detailed Description

Definition at line 804 of file os.py.


Constructor & Destructor Documentation

def os._wrap_close.__init__ (   self,
  stream,
  proc 
)

Definition at line 805 of file os.py.

00805 
00806     def __init__(self, stream, proc):
00807         self._stream = stream
        self._proc = proc

Here is the caller graph for this function:


Member Function Documentation

def os._wrap_close.__enter__ (   self)

Definition at line 817 of file os.py.

00817 
00818     def __enter__(self):
        return self
def os._wrap_close.__exit__ (   self,
  args 
)

Definition at line 819 of file os.py.

00819 
00820     def __exit__(self, *args):
        self.close()

Here is the caller graph for this function:

def os._wrap_close.__getattr__ (   self,
  name 
)

Definition at line 821 of file os.py.

00821 
00822     def __getattr__(self, name):
        return getattr(self._stream, name)

Here is the call graph for this function:

def os._wrap_close.__iter__ (   self)

Definition at line 823 of file os.py.

00823 
00824     def __iter__(self):
00825         return iter(self._stream)
00826 
# Supply os.fdopen()
def os._wrap_close.close (   self)

Definition at line 808 of file os.py.

00808 
00809     def close(self):
00810         self._stream.close()
00811         returncode = self._proc.wait()
00812         if returncode == 0:
00813             return None
00814         if name == 'nt':
00815             return returncode
00816         else:
            return returncode << 8  # Shift left to match old behavior

Here is the caller graph for this function:


Member Data Documentation

Definition at line 807 of file os.py.

Definition at line 806 of file os.py.


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