[Biopython-dev] BioPython Design

Felix Schlesinger f.schlesinger at iu-bremen.de
Wed Jul 12 13:25:43 UTC 2006

> Personaly, I would prefere to keep Alphabets as a part of Seq,
> but make it behave more like python strings, i.e.:
> str(seq_obj) == seq_obj.data == seq_obj.tostring() == seq_obj[:]

Isn't the whole alphabet thing just a type information in the end?
(I.e. "This string is of type protein") And if it is, shouldn't we let
the python type system handle it via a class hirachie? Or use the
python concept of duck typing and assume the string has whatever type
is needed at the moment until it fails?

Felix Schlesinger

More information about the Biopython-dev mailing list