[Biopython-dev] why buffer in utils.count_monomers?

Michael Hoffman hoffman at ebi.ac.uk
Mon Mar 15 17:55:22 EST 2004

On Mon, 15 Mar 2004, Iddo Friedberg wrote:

> when I replaced the variable "s" in line 64 in utils.py with "seq.data"
> everything worked fine. In line 62 "s" is defined as:
> s=buffer(seq.data)
> Does that serve a purpose? Can we do without it, (meaning I deposit the
> bugfix) or is it important?

There is a comment that says that using a buffer makes the function
work for both strings and arrays. Of course right now it works for
Michael Hoffman <hoffman at ebi.ac.uk>
European Bioinformatics Institute

More information about the Biopython-dev mailing list