biopython python named_tuple proposal

python 2.6 will implement a new data format (named_tuple). Can it be of use for biopython?

Hi,
python 2.6 is going to implement a new kind of data (like lists, strings, etc..) called 'named_tuple'.
It is intended to be a better data format to be used when parsing record files and databases.

You can download the recipe from here (it should be included experimentally in python 2.6):
- http://code.activestate.com/recipes/500261/

Basically, you instantiate a named_tuple object with this syntax:

> Person = NamedTuple("Person name surname")

"Person" is a label for the named_tuple; the following fields, 'name' and 'surname'


Syndicate content