Package Bio :: Package GFF :: Module GenericTools
[hide private]
[frames] | no frames]

Module GenericTools

source code

Docstring


Version: $Revision: 1.4 $

Classes [hide private]
  AppendableListDictionary
a dictionary of lists
  ForgivingDictionary
  VerboseDict
  VerboseList
  TempFile
  SurrogateNotInitedError
  Surrogate
the data is stored in _data
  ArgsParser
Functions [hide private]
 
defline_text(defline) source code
 
is_nestable(x)
Returns 1 if x is a tuple or list (sequence types that can nest) Returns 0 otherwise
source code
 
dump_list(l)
returns strings of list
source code
 
reverse_text(text) source code
 
all(iterator) source code
 
_test(*args, **keywds) source code
Function Details [hide private]

is_nestable(x)

source code 

Returns 1 if x is a tuple or list (sequence types that can nest) Returns 0 otherwise

>>> is_nestable("string")
0
>>> is_nestable((0,))
1
>>> is_nestable(range(5))
1