[BioPython] Sequence object

Kate katel@worldpath.net
Fri, 1 Oct 1999 17:22:34 -0700


  A lot of routines in biostat.py contain this code fragment.

 if type(indata[0]) is ListType:
  if len(indata[0]) == 2:
   datalist = table2list(indata)
 elif type(indata) is ListType:
  datalist = indata[:]
 else:
  raise TypeError

   Could it be made into a function to reduce clutter?


                                      Kate