[Biopython-dev] [Bug 2507] Adding __getitem__ to SeqRecord for element access and slicing

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Thu Jun 5 09:36:18 UTC 2008


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





------- Comment #5 from biopython-bugzilla at maubp.freeserve.co.uk  2008-06-05 05:36 EST -------
Created an attachment (id=928)
 --> (http://bugzilla.open-bio.org/attachment.cgi?id=928&action=view)
Patch to Bio/SeqRecord.py adding __getitem__ and __len__ and __iter__

Patch based on my comment 1, with addition of __len__ allowing len(my_record)
rather than len(my_record.seq) and an explicit __iter__ method (although this
is not required, it lets us give a doc string).


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