Bio :: File :: UndoHandle :: Class UndoHandle
[hide private]
[frames] | no frames]

Class UndoHandle

source code

object --+
         |
        UndoHandle

A Python handle that adds functionality for saving lines.

Saves lines in a LIFO fashion.

Added methods:
saveline    Save a line to be returned next time.
peekline    Peek at the next line without consuming it.

Instance Methods [hide private]
 
__init__(self, handle)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__iter__(self) source code
 
next(self) source code
 
readlines(self, *args, **keywds) source code
 
readline(self, *args, **keywds) source code
 
read(self, size=-1) source code
 
saveline(self, line) source code
 
peekline(self) source code
 
tell(self) source code
 
seek(self, *args) source code
 
__getattr__(self, attr) source code
 
__enter__(self) source code
 
__exit__(self, type, value, traceback) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, handle)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)