[Biopython-dev] [Bug 2351] Make Seq more like a string, even subclass string?

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Tue Oct 30 19:45:35 UTC 2007


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


biopython-bugzilla at maubp.freeserve.co.uk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Make SeqRecord subclass Seq |Make Seq more like a string,
                   |subclass string?            |even subclass string?




------- Comment #5 from biopython-bugzilla at maubp.freeserve.co.uk  2007-10-30 15:45 EST -------
I modified the title to focus on the Seq object.

See also bug 2386 (about the count method), and bug 2381 (about biological
methods).

(In reply to comment #4)
> (In reply to comment #3)
> > It does not add any .short() method to give a truncated representation
> > string like the current str() method gives.
> 
> Why not? This new method should not cause any compatibility problem

Mainly because I'm not convinced that we need a .short() method, and its harder
to remove things at a later date (as people may be using them).

Surely my_seq[:50] or depending on the context, str(my_seq[:50]), is enough?


-- 
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