Back to index

python-biopython  1.60
Public Member Functions | Private Attributes
test_SeqIO.ForwardOnlyHandle Class Reference

List of all members.

Public Member Functions

def __init__
def __iter__
def read
def readline
def close

Private Attributes

 _handle

Detailed Description

Mimic a network handle without seek and tell methods etc.

Definition at line 217 of file test_SeqIO.py.


Constructor & Destructor Documentation

def test_SeqIO.ForwardOnlyHandle.__init__ (   self,
  handle 
)

Definition at line 219 of file test_SeqIO.py.

00219 
00220     def __init__(self, handle):
00221         self._handle = handle


Member Function Documentation

Definition at line 222 of file test_SeqIO.py.

00222 
00223     def __iter__(self):
00224         return iter(self._handle)

Definition at line 234 of file test_SeqIO.py.

00234 
00235     def close(self):
00236         return self._handle.close()

Here is the caller graph for this function:

def test_SeqIO.ForwardOnlyHandle.read (   self,
  length = None 
)

Definition at line 225 of file test_SeqIO.py.

00225 
00226     def read(self, length=None):
00227         if length is None:
00228             return self._handle.read()
00229         else:
00230             return self._handle.read(length)

Definition at line 231 of file test_SeqIO.py.

00231 
00232     def readline(self):
00233         return self._handle.readline()


Member Data Documentation

Definition at line 220 of file test_SeqIO.py.


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