[Biopython-dev] [Bug 2351] Make SeqRecord subclass Seq subclass string?

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Sun Sep 9 21:54:31 UTC 2007


http://bugzilla.open-bio.org/show_bug.cgi?id=2351





------- Comment #3 from biopython-bugzilla at maubp.freeserve.co.uk  2007-09-09 17:54 EST -------
Created an attachment (id=751)
 --> (http://bugzilla.open-bio.org/attachment.cgi?id=751&action=view)
Make str() work intuitively on Seq and MutableSeq objects

This patch only changes the Seq and MutableSeq objects:

1. Makes the str() method give the full sequence for Seq and MutableSeq objects
2. Added docstrings to encourage str(my_seq) instead my_seq.tostring()
3. Fixed the repr() of a MutableSeq object

This patch updates Bio/Seq.py and the unit test case test_seq.py and its
output.

It does not add any .short() method to give a truncated representation string
like the current str() method gives.

It does not do anything to Bio/SeqRecord.py


-- 
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Biopython-dev mailing list