Package svnmailer :: Module stream :: Class _BaseStream
[show private | hide private]
[frames | no frames]

Class _BaseStream

object --+
         |
        _BaseStream

Known Subclasses:
BinaryOrUnicodeStream, CountStream, CuckooStream, DevNullStream, SplittingStream, TruncatingStream, UnicodeStream

Base stream wrapper
Method Summary
  __init__(self, stream)
Initialization
  __getattr__(self, name)
Delegates all undefined attributes to the stream
  close(self)
Closes the stream
  write(self, towrite)
Writes the data to the stream
  writelines(self, lines)
Write a list of strings
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name...
  __getattribute__(...)
x.__getattribute__('name') <==> x.name...
  __hash__(x)
x.__hash__() <==> hash(x)...
  __reduce__(...)
helper for pickle...
  __reduce_ex__(...)
helper for pickle...
  __repr__(x)
x.__repr__() <==> repr(x)...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value...
  __str__(x)
x.__str__() <==> str(x)...
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...

Instance Variable Summary
file stream: The wrapped stream

Method Details

__init__(self, stream)
(Constructor)

Initialization
Parameters:
stream - The stream to wrap
           (type=file)
Overrides:
__builtin__.object.__init__

__getattr__(self, name)
(Qualification operator)

Delegates all undefined attributes to the stream

close(self)

Closes the stream

write(self, towrite)

Writes the data to the stream
Parameters:
towrite - stuff to write
           (type=str)

writelines(self, lines)

Write a list of strings
Parameters:
lines - The lines to write (including n)
           (type=list)

Instance Variable Details

stream

The wrapped stream
Type:
file

Generated by Epydoc 2.0 on Sun Sep 25 20:49:15 2005 http://epydoc.sf.net